Introducing Python © Chirag Wazir 2002 Prev   Index   Next

Numbers

integers plain, long

float

complex

37**23               # 1171223165167387672982838813062831053L
(1+2j)/(1+1j)        # (1.5+0.5j)
divmod(256521, 37)   # (6933, 0)
355.0/113.0          # 3.1415929203539825