Operations on NumbersFunctions applicable to numbersabs(x) Absolute value divmod(x,y) Returns (int(x/y), x % y) pow(x,y [,m]) Returns (x ** y) % m round(x [,n]) Round to n digits of precision (floats only) Comparisonsx < y Less than x > y Greater than x == y Equal to x != y Not equal to (same as <>) x >= y Greater than or equal to x <= y Less than or equal to |
<<< | O'Reilly OSCON 2000, Introduction to Python, Slide 53 July 17, 2000, beazley@cs.uchicago.edu |
>>> |