Python else if syntax error

Hi! I sat for an hour to fix this error but failed. It is a syntax error in line 4.
Please help.
Thanks!

1 Like

Hey @abdulali1998, welcome to the forums, you should change all :

else if

for

elif

It’s a common syntax error! Are you in the 100 days of code, there’s a video about the elif argument

2 Likes

I did but it still wouldn’t work

1 Like

Nvm it worked, thanks!

Great to know it worked for you!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.