Question
Correct any three errors in the following Python code:
temperature = 5;
if temperature > 30:
print("It's hot")
elif temperature = 5:
display("It's cold")
else:
print("The weather is mild")
Correct any three errors in the following Python code:
temperature = 5;
if temperature > 30:
print("It's hot")
elif temperature = 5:
display("It's cold")
else:
print("The weather is mild")
Sign in to write or photograph your own answer before checking the model answer. It is saved privately to your account and free to do.
Flashcards, MCQs and other questions linked to this one appear here as they are added.
Topics and outcomes this question is testing.