/ and with //. The two results are compared, and then a string and True are each tested against the number one.
a = 7 / 7
b = 7 // 7
print(a == b, type(a) == type(b), "1" == 1, True == 1)
What does the program print?Log in to join the discussion.
Loading…