>>> def maximum(x,y):
if x>y:
return x
else:
return y
>>> maximum(3,4)
4
>>> sum(x for x in range(100))
4950
>>> s='i am jack'
>>> len(s)
9
>>> range(1,5)
range(1, 5)
>>> def fun_good():
print('i am good')
>>> fun_good()
i am good
>>> (1+5j)*(2+3j)
(-13+13j)
>>> 3/5
0.6
>>> 3+6
9
>>> for i in range(1,10):
print(i)
1
2
3
4
5
6
7
8
9
>>> the_world_is_flat = 1
>>> if the_world_is_flat:
print("Be careful not to fall off!")
Be careful not to fall off!