Question: #This code has 5 syntax errors! Find them and correct them. # Create a variable called score, setting it to 10 score = 10
#This code has 5 syntax errors! Find them and correct them.
# Create a variable called score, setting it to 10
score = 10
# If the score is zero or less
if score <= 0:
{
# Output to the user that they lose
print("You Lose!")
}
else:
{
# Output - You Win! - and the score to the user
print("You Win!")
print("Your score is :",score)
print(score)
}
# Wish the user good luck next time (If they win AND if they lose)
print("Good Luck Next Time.")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
