Skip to main content

Operator

Published 1 min readMarkdown
Part of seriesPython
print(1+1) # 2
print(3-2) # 1 
print(5*2) # 10
print(6/3) # 2

print(2**3) # 2^3 = 8
print(5%3) # remainder = 2
print(5//3) # quotient = 1
print(10//3) # 1

print(10 > 3) # True
print(4 >= 7) # False
print(5 <= 5) # True

print(3 == 3) # True
print(4 == 2) # False
print(3 + 4 == 7) # True
print(1 != 3) # True
print(not(1 != 3)) # False

No comments yet. Be the first to comment.

More from this blog