+ 1

How can I loop a program so that it requires user input until it types "Exit"? Please, i really need it

plzzzzz

23rd Dec 2017, 2:06 AM
Non
Non - avatar
4 Answers
0
I don't know if this will help too much, but you can put your entire code in a while True: statement and set it so that when the user inputs "Exit", then the loop will stop. Take this code for example: https://code.sololearn.com/cnlX18mNFsVe/?ref=app
23rd Dec 2017, 2:13 AM
Faisal
Faisal - avatar
0
Thx for help <3
23rd Dec 2017, 2:19 AM
Non
Non - avatar
0
i think you need multithreading. if you want print something while your program waiting for user input.
23rd Dec 2017, 2:20 AM
Faviansyah Arianda P
Faviansyah Arianda P - avatar
0
I'm still very poor in Python. Can you please tell me more? Thank you <3
23rd Dec 2017, 2:26 AM
Non
Non - avatar