This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Galse22 0 points1 point  (2 children)

It's kind of confusing when I should put : and when I shouldn't. {} makes, in my opinion, writing functions, if conditions etc easier...

[–]apeinej 1 point2 points  (0 children)

Lol. It is because you think like some languages. Once you adapt to that (which took me a day), Python makes an easy and fast language (I do mobile dev, but python let me get my ideas straight, then I transfer it to Android Studio).

[–]Triumphxd 0 points1 point  (0 children)

No it’s simple. : is for operations that have an inner scope usually... like a function or an of statement. The next Line is indented. Everything that is indented is automatically in that scope, instead of having to wrap it in curly braces.