How to run this code multiple times | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to run this code multiple times

Please help me to run this code multiple times 👇 https://code.sololearn.com/cgWna43xw997/

2nd Apr 2021, 11:16 AM
Hemant Gholap
Hemant Gholap - avatar
2 Answers
+ 9
Hemant , to repeat the code, put it in a while loop (e.g.: while True:). you also should give thd user an option to leave the while loop with a break. happy coding and good success!
2nd Apr 2021, 11:18 AM
Lothar
Lothar - avatar
+ 2
what do u mean by running it multiple times?u mean the input prompt?
2nd Apr 2021, 11:17 AM
durian
durian - avatar