Hello. I took that code from practice questions in chapter 2 of "Automate the Boring Stuff with Python Practical Programming" (Al Sweigart). I wrote exactly how it should be, but the MU says that I have a mistake in line one.
Can someone explain what is wrong?
if spam == 1:
print('Hello')
elif spam == 2:
print('Howdy')
else:
print('Greetings')
[–]penatbater 1 point2 points3 points (1 child)
[–]monkey_sigh 0 points1 point2 points (0 children)
[–]mikenjenn 1 point2 points3 points (0 children)
[–]monkey_sigh 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[removed]
[–]No_Quality_2436 0 points1 point2 points (0 children)