Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions

Question

preparing for and completing job interviews and considering offers.

Answered: 1 week ago