print type(5) <type 'int'>
print type("abc") <type 'str'>
print type(True) <type 'bool'>
print type(5.5) <type 'float'>
print type(12/27) <type 'int'>
print type(2.0/1) <type 'float'>
print type(12 ** 3) <type 'int'>
print type(5 == "5") <type 'bool'>
a = str((-4 + abs(-5) / 2 ** 3) + 321 -((64 / 16) % 4) ** 2)
print a
Ans: 317
No comments:
Post a Comment