We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20ba81b commit aa7a962Copy full SHA for aa7a962
1 file changed
basics/loops.md
@@ -381,7 +381,13 @@ while True:
381
option = input("Choose an option: ")
382
383
# Things like option == 0 don't work because option is a string
384
- # and it needs to be compared with a string.
+ # and it needs to be compared with a string:
385
+ # >>> 0 == 0
386
+ # True
387
+ # >>> '0' == '0'
388
389
+ # >>> 0 == '0'
390
+ # False
391
if option == '0':
392
print("Bye!")
393
break
0 commit comments