0
Make a loop?
how do I make a loop (like in a betting game) that repeatively asks the user to enter a guess?
14 Réponses
+ 1
This is working code :
while ('true'):
x = int(input("Enter"))
// please make indentation corret
+ 1
ok got it, the problem is the program i gave will run forever.
But playground allows you to enter the input only once, it is getting error , second time it is asking for input.
0
while (true)
{....
}
0
thx first but idk y but it shows no input no more...
0
var input = input("enter ")
0
put that inside while loop
0
one sec ill try
0
invalid syntax
0
which version u using ?
0
python3 in the playground
0
while ('true'):
something = input("Enter random number : ")
0
I think you should start with basics of python before jumping to actual coding
0
while ('true'):
something = input("Enter random number : ")
i did exactly that (except i used x=int(input()) bc i need it to be an integal) and it would not work
0
i know that this works on regular python3 but im on vocation so i have to use my mobile and it says EOFError: EOF when reading the line