© 2004-19

Python Arithmetic
This How To will introduce you to the basics of Python arithmetic including:
  • Addition
  • Subtraction
  • Multiplication
  • Division
  • Exponentiation
  • Mod (remainder after integer division)
  • Div (Quotient after intege division)
Method Description
Extract Number Extract a number or series of numbers from a text string
Random number Generate a random number between two values