0
I can't understand the bug
I can't understand why do output is nothing https://sololearn.com/compiler-playground/cJy83L6tB1IH/?ref=app
2 Respostas
+ 5
you are comparing choice to numbers. input is string. they will never be equal.
choice == 1
but if i input 1, it is actually '1'
'1' == 1 will always be False
so you have to either convert input to int or compare to string.
choice = int(input())
or
choice == '1'
+ 3
If you convert the input to integer like this...
choice = int(input())
....then it works.