Why this isn't working | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
19th Dec 2022, 9:41 AM
Ayın tacı
Ayın tacı - avatar
4 Answers
+ 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..
19th Dec 2022, 10:37 AM
Jayakrishna 🇮🇳
+ 2
Why the input isn't shown on output screen
19th Dec 2022, 10:23 AM
Ayın tacı
Ayın tacı - avatar
+ 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.
19th Dec 2022, 9:53 AM
Jayakrishna 🇮🇳
+ 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")
19th Dec 2022, 6:59 PM
Medo Kan
Medo Kan - avatar