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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!