0

Ahh! One more plsss!

M = input M = Input ("Ask about Thor or Hulk:") If M = Thor Print ("Thor is mighty") Now, Suppose i want to ask about Hulk without running the program again what could i do?

21st Jul 2022, 5:21 PM
Rizwan Ahmed
Rizwan Ahmed - avatar
6 Answers
+ 2
HiFoX HeaD cool code Idea. Python uses indentation to indicate a block of code. I have provided an example on how to get it working. - There are other ways to do this. This code editor is isn't so great for multi input or repeating programs. However you can type multilinear input if you know how the code works. Hulk yes Thor yes no Typing hulk will print hulk is mighty. yes will continue to ask the question again. no will end the program. If you want to see how it really works I recommend trying a different compiler. If you have access to a computer you can run the code here. https://www.programiz.com/python-programming/online-compiler/ https://code.sololearn.com/csGyY6o56Het/?ref=app
21st Jul 2022, 6:40 PM
Chris Coder
Chris Coder - avatar
+ 2
Put all that code in a loop. But there are many syntax errors
21st Jul 2022, 5:33 PM
Slick
Slick - avatar
+ 2
Hello Chris Coder Thank you veryy much for your time and explaination!😊 I Got it how that works and yeh i also use programmiz app
22nd Jul 2022, 9:00 AM
Rizwan Ahmed
Rizwan Ahmed - avatar
+ 2
Well if you're doing it on SoloLearn platform, here's advice....The platform doesn't accept input multiple times.....Unless multiple inputs in one prompt box
23rd Jul 2022, 5:25 PM
Tony Stark
Tony Stark - avatar
+ 1
Pythoner Thank you for the advice yeah i dont use this compiler for these type of codes
23rd Jul 2022, 6:09 PM
Rizwan Ahmed
Rizwan Ahmed - avatar
0
still a newbie 😅. btw Can you tell me how should i do it
21st Jul 2022, 5:35 PM
Rizwan Ahmed
Rizwan Ahmed - avatar