178k views
2 votes
Select all the mistakes in the following: There may be more than one.

if (count = 10):
print ("Hello")
elseif (count > 100):
print ("Good-bye")
else
print("WAIT!")


If anyone knows the answer that would be greatly appreciated. Thanks

1 Answer

6 votes

The if statement should have two equal signs, the elseif should be elif, and the else statement should have a colon at the end of it. There might be more errors in the indentation but I cant know unless I see a picture of the problem. The print statement should be indented into the if, elif, and else statements.

User Mark N Hopgood
by
4.8k points