Skip to Content
Practical Web Penetration Testing
book

Practical Web Penetration Testing

by Gus Khawaja
June 2018
Intermediate to advanced
294 pages
7h 5m
English
Packt Publishing
Content preview from Practical Web Penetration Testing

Numbers

The following is a list of the most common numerical types that Python supports:

  • int: These are sometimes called integers, and they are positive or negative whole numbers with no decimal point (for example, 11).
  • long (long integers): These are integers of unlimited size, written like integers and followed by an uppercase or lowercase L (for example, 788739888999L).
  • float (floating points): These represent real numbers, and are written with a decimal point (99.9999). Floats are sometimes used in scientific notation, with E or e indicating the power of 10 (2e2 = 2 x 102).
  • To get the maximum or minimum of two numbers, do the following:
num1 = max(2,8)num2=min(2,8)
  • To generate a random number from a range, do the following:
# Generate ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Web Penetration Testing with Metasploit

Hands-On Web Penetration Testing with Metasploit

Harpreet Singh, Himanshu Sharma
Penetration Testing

Penetration Testing

Georgia Weidman

Publisher Resources

ISBN: 9781788624039Supplemental Content