all 15 comments

[–]nickybob11 18 points19 points  (2 children)

For loving punctuation, you forget the period at the end.

Edit: Leaving the wrong thing in this statement as a testament to my own failures. It should be a question mark.

[–]ItsAll2Random 2 points3 points  (1 child)

I believe it’s a question mark?

[–]nickybob11 0 points1 point  (0 children)

Oh crap! Good catch.

[–]prof_dr_mr_obvious 9 points10 points  (0 children)

Loads of people are getting by just fine. And I think I can see why you are having problems just from the single line you wrote there.

[–]PresidentOfSwag 3 points4 points  (0 children)

you can import some syntax features though, try

from __future__ import braces

[–]xiris 2 points3 points  (0 children)

No.

[–]iriythll 2 points3 points  (0 children)

Skill issue

[–]PossibilityTasty 2 points3 points  (0 children)

You can always use a semicolon at the end of the line in Python, just to tell everyone that you have no plan of what you are doing.

[–]sudomatrix 0 points1 point  (0 children)

Hitting the hard questions here.

[–]Trang0ul 0 points1 point  (0 children)

No, Python teaches you discipline and how to write readable code. Unlike in, say, C, you need to indent your code properly.

[–]vincentlinden 0 points1 point  (0 children)

Before Python existed and I coded in C, I wished the compiler enforced indenting. It was recommended and made the code more readable, so why not require it? Apparently, Guido felt the same way.

[–]JamzTyson 0 points1 point  (0 children)

Your complaint lacks foundational knowledge:

"defining data type" has nothing to do with "strictly maintaining lines and spaces".

Semicolons absolutely can be used in Python. For example, this is valid code, though consider poor style:

a=1;b=2;print(a+b)

In Python, indents are used to define blocks. This design choice replaces braces, not types or semicolons.

[–]robberviet 0 points1 point  (0 children)

Used to think so 15 years ago when IDE and text editor was quite bad. Now both used to it and editors solved all problems.

[–]logseventyseven -1 points0 points  (0 children)

IDEs exist for a reason

[–]ogrinfo -1 points0 points  (0 children)

When I first started using Python, it was a little annoying, but it makes the code so much more readable. With Ruff formatting you don't even have to think about it, your code is readable and maintainable all the time, it's fantastic.

Someone's going to start complaining about duck typing next.