I'm giving link to my code. HELP! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I'm giving link to my code. HELP!

I mean how to make loop to go back at m if the ans is wrong in Python https://code.sololearn.com/c3i1EctH9Q9a/?ref=app

21st Jul 2022, 4:23 PM
Rizwan Ahmed
Rizwan Ahmed - avatar
4 Answers
+ 5
#Learn about loops : #How to make loop here : while True : m = input("type 7:") if m == '7': print ("Good job") break else: print("Bad job try again")
21st Jul 2022, 4:38 PM
Jayakrishna 🇮🇳
+ 2
Take your entire Code from Input to else and put it in a while (True)-Loop and then put in the if-statment with m==7 in Break.
21st Jul 2022, 4:37 PM
Felix Alcor
Felix Alcor - avatar
21st Jul 2022, 8:24 PM
Chris Coder
Chris Coder - avatar
0
Chris Coder it was for numbers but i guy who is above helped me
22nd Jul 2022, 9:01 AM
Rizwan Ahmed
Rizwan Ahmed - avatar