+ 2

Input function in Python is not working on my mobile sololearn app. Please, how can I fix

Input function

26th May 2019, 9:50 AM
Ololade
11 Antworten
+ 5
yes i agree with lothar
26th May 2019, 11:30 AM
Dace [Super Inactive| Challenge=Maybe]
Dace [Super Inactive| Challenge=Maybe] - avatar
+ 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')
26th May 2019, 2:45 PM
Lothar
Lothar - avatar
+ 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.
12th Mar 2023, 11:53 AM
Lothar
Lothar - avatar
+ 4
check your code for a mistake in that part of the code
26th May 2019, 11:25 AM
Dace [Super Inactive| Challenge=Maybe]
Dace [Super Inactive| Challenge=Maybe] - avatar
+ 4
or use input(":")
26th May 2019, 11:27 AM
Dace [Super Inactive| Challenge=Maybe]
Dace [Super Inactive| Challenge=Maybe] - avatar
+ 4
It would be much easier for us to help you if you will share your code for us.
26th May 2019, 11:29 AM
Lothar
Lothar - avatar
+ 2
Alright, I will share the code. Thank you all.
26th May 2019, 2:04 PM
Ololade
+ 2
I was unable to input a guess in the output.
26th May 2019, 2:32 PM
Ololade
+ 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')
26th May 2019, 2:31 PM
Ololade
+ 1
Thank you. I really appreciate.
26th May 2019, 6:27 PM
Ololade
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
12th Mar 2023, 10:52 AM
Lekha Sri