O
5

My friend saw my code and said it looked like alphabet soup

I was showing a friend my first Python script, a simple number guesser. He looked at it for a second and said, 'Dude, you need spaces. This is just a wall of text.' I had all my if and else statements squished together with no blank lines. The next day, I went back and added a line break after each block, and it was like night and day. I could actually see where one part ended and the next began. Has anyone else had a simple tip that made your code way easier to read?
2 comments

Log in to join the discussion

Log In
2 Comments
olivia_hernandez
Totally get that, spacing is everything. I see this all the time with instructions for flat-pack furniture or appliance manuals, where they cram all the steps into one huge paragraph. Adding that visual break lets your brain catch up and actually process what comes next. It's the same principle with code, just giving your eyes a place to rest.
6
wesley_fox92
Wait, isn't that just adding whitespace, not line breaks?
5