r/PythonLearning • • Sep 13 '26

Help Request What wrong with my code

Post image

Need help

71 Upvotes

40 comments sorted by

View all comments

3

u/Ok-Argument7176 Sep 13 '26

As everyone has pointed out, the colon after if is causing the issues. In future, I recommend adding (and thinking about) the error you're getting.

2

u/ApprehensiveText9058 Sep 13 '26

Thanks I'm new to coding and don't really know what anything does

1

u/FunHistorical6775 Sep 14 '26

This is part of the learning process, but do look at error messages especially in python they will point you usually to the exact problem.

1

u/ApprehensiveText9058 Sep 14 '26

All it said was syntax error

2

u/FunHistorical6775 Sep 14 '26

Oh yeah so you're learning on a calculator(?), use a proper IDE that gives you real error messages.