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
3 Answers
+ 6
read the error output.
Disaster has a break out of a loop.
+ 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