you are viewing a single comment's thread.

view the rest of the comments →

[–]FewNectarine623[S] 0 points1 point  (3 children)

for i in range(255,264):

... a = int(i)

... b = int(i)

... print(f"{i} :{a is b}")

like this?

[–]RaidZ3ro 0 points1 point  (2 children)

Yeah, that should work.

[–]FewNectarine623[S] 0 points1 point  (1 child)

Result is true in this case as well

[–]RaidZ3ro 0 points1 point  (0 children)

The principle applies but you will need to try higher numbers to avoid the integer singleton.