0

Why are these codes not working?

They both aren’t working and I keep on trying to add codes to make them work but all I get is error after error! https://code.sololearn.com/cWF349o1GmzA/?ref=app https://code.sololearn.com/cl35d34jTGVz/?ref=app

4th May 2020, 2:11 PM
Honest Thomas
Honest Thomas - avatar
3 Answers
+ 6
read the error output. Disaster has a break out of a loop.
4th May 2020, 2:17 PM
Oma Falk
Oma Falk - avatar
+ 3
Remove 'break' in your first code because it is generally used to break out of a loop and cannot be used within just if. Improper indentation in second code- user_input = input(": ") if user_input == "jupiter": def multiply(x, y): return x*y
4th May 2020, 2:17 PM
Avinesh
Avinesh - avatar