Example: bankruptcy
Real Python: Python 3 Cheat Sheet

Real Python: Python 3 Cheat Sheet

Back to document page

8 1.5 9 >>> 3 * 3 10 9 11 >>> 3 ** 3 12 27 13 >>> num = 3 14 >>> num = num - 1 15 >>> print(num) 16 2 17 >>> num = num + 10 18 >>> print(num) 19 12 20 >>> num += 10 21 >>> print(num) 22 22 23 >>> num -= 12 24 >>> print(num) 25 10 26 >>> num *= 10 27 >>> num 28 100 There’s also a special operator called modulus, %, that returns the remainder after integer …

  Python, Sheet, Teach, Cheat sheet

Download Real Python: Python 3 Cheat Sheet


Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Related search queries