+ 2
Input function in Python is not working on my mobile sololearn app. Please, how can I fix
Input function
11 ответов
+ 5
yes i agree with lothar
+ 5
this is the revised code. But you can not run it in SoloLearn because of input restrictions. But it does work well on regular systems:
#This is the code below:
# The code is.a guess game.
#revised 26.05.2019
secret_number = 7
guess_count = 0
guess_limit = 3
while guess_count < guess_limit:
guess = int(input('Guess: '))
guess_count+=1
if guess == secret_number:
print('You won!')
break
else:
print('Sorry, you lose')
else:
print('Game over')
+ 5
Lekha Sri ,
> it is better for you to start your own post, otherwise poeple will not get aware of you.
> please also include your current code in the post.
+ 4
check your code for a mistake in that part of the code
+ 4
or use input(":")
+ 4
It would be much easier for us to help you if you will share your code for us.
+ 2
Alright, I will share the code. Thank you all.
+ 2
I was unable to input a guess in the output.
+ 1
This is the code below:
# The code is.a guess game.
secret_number = 7
guess_count = 0
guess_limit = 3
while guess_count < guess_limit:
guess = int(input('Guess: '))
guess_count+=1
if guess_count == secret_number:
print('You won!')
break
else:
print('Sorry, you lose')
+ 1
Thank you. I really appreciate.
0
I can't run the input () function in python in sololearn app and because of that I can't go on to the next part of the course.anyone faces the same problem