T
Talk Freely
Log In
Loading…
Can we talk about syntax errors in Python loops? | Coding For Beginners - Talk Freely
22
c/coding-for-beginners
•
piper_moore
•
7mo ago
Can we talk about syntax errors in Python loops?
I just started learning Python last week. My code has a for loop that should print numbers, but it keeps crashing. I looked online and fixed the indentation, but no luck. What common mistakes should I check for? I'm using a basic text editor.
3 comments
Share
Log in to join the discussion
Log In
3 Comments
Best
New
Old
Controversial
dakotas54
7mo ago
Ugh, check your colons maybe?
7
Share
adam751
7mo ago
Mine are always a mess,
@dakotas54
.
7
Share
brian237
7mo ago
Colons are a good start, but also make sure your print statement is actually inside the loop. It's easy to have it lined up wrong.
3
Share