#This code has 5 syntax errors! Find them and correct them. # Create a variable called...
Fantastic news! We've Found the answer you've been seeking!
Question:
#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.")
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: