12345678910111213141516171819202122232425 |
- import math
- print "integers"
- print 1 + True
- print 2 - True
- print 3 * False
- print 4 / True
- print 5 % True
- print 6 ** False
- print "floats"
- print 1.5 + True
- print 2.5 - True
- print 3.5 * False
- print 4.5 / True
- print 5.5 % True
- print 6.5 ** False
- print "longs"
- print 1L + True
- print 2L - True
- print 3L * False
- print 4L / True
- print 5L % True
- print 6L ** False
- print "math module"
- print math.fabs(True)
- print math.cos(True)
|