+ 1
Why this isn't working
4 odpowiedzi
+ 3
No. It won't. Sololearn is not interactive. So it need all inputs before starts execution, through pop-up window we can add. It's not console output to show input. (Almost, online apps for compiling, works like this..).
For interactive environment, you can use pc Or laptap with same code.
If you want see input on output, use printing after taking input.. Like
ins = input()
print( ins )
Hope it helps..
+ 2
Why the input isn't shown on output screen
+ 1
It's working..
What error you getting..?
If about input giving difficulty!
Add 3 inputs in the pop - up window as
2 <press enter >
2 < press enter>
3 < press hit >
On input 23 , it prints you won.
+ 1
secret_number=23
guess_count=0
guess_limit=3
while guess_count < guess_limit:
guess_count =int(input("Guess:\n "))
guess_count +=1
if guess_count == secret_number:
print("You won")
break
else:
print("sorry you lose")