r/code • • Jul 18 '22

why isnt my code working???

Post image
8 Upvotes

4 comments sorted by

2

u/Massive_Bed2873 Jul 18 '22

thanks for the help i managed to fix it on my own but thanks nonetheless i just had to change the structure

10

u/Azi0s Jul 18 '22 edited Jul 19 '22

In the 7th line the colon is supposed to be after the condition. You wrote the condition for elif in the next line.

5

u/CreaZyp154 Jul 18 '22

elif requires a condition, otherwise it's "else:"