8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2129673 + d47480d commit ce3ff93Copy full SHA for ce3ff93
basics/loops.md
@@ -377,7 +377,13 @@ while True:
377
option = input("Choose an option: ")
378
379
# Things like option == 0 don't work because option is a string
380
- # and it needs to be compared with a string.
+ # and it needs to be compared with a string:
381
+< 6443 div class="diff-text-inner"> # >>> 0 == 0
382
+ # True
383
+ # >>> '0' == '0'
384
385
+ # >>> 0 == '0'
386
+ # False
387
if option == '0':
388
print("Bye!")
389
break
0 commit comments