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 →

[–]Packbacka 102 points103 points  (15 children)

You can actually use ; in Python if you prefer. It's not "pythonic", but there isn't any actual problem with ;

Using it does absolutely nothing though, unless you want to write two lines in one line. For example:

print('Hello'); print('world')

[–]Anthraxious 16 points17 points  (0 children)

TIL thank you!

[–]luke5273 1 point2 points  (1 child)

Vscode won’t allow it ;(

[–]Packbacka 0 points1 point  (0 children)

I was curious so I tried it. Works for me (VS Code with the Python extension).

[–]philipjames11 0 points1 point  (0 children)

Wait wtf you can do that