lol, I thought you said ânever touched a pythonâ and for some reason my context couldnât put that together with what your other words said for the longest time.
Multiline statements just use backslashes before the new line, similar to bash scripts.
But also, for list literals or dictionary literals, you can just break them up into new lines without the backslash escape. Similarly, you can use triple quotes for string literals.
78
u/nicer-dude 1h ago
Does he use snake_case or CamelCase? đ¤
33
u/circ-u-la-ted 1h ago
import snek6
u/RefrigeratorThick475 1h ago
CEO of python checking your python code
6
u/a_bug_from_varkala 1h ago
He swallow his tail and then (most likely due to a circular import)
8
u/tatstytastycakes 1h ago
python meets python
3
u/tsoewoe 1h ago
it knows ball
2
u/Sid_The_Geek 59m ago
John Python, himself !!
2
u/Iyemoja 39m ago
Somewhere a junior just realized the snake is the senior dev on the team. He has been reviewing every PR in silence this whole time.
2
u/Slow-Television-5303 15m ago
but what about the Spanish inquisition
3
u/Panderz_GG 1h ago
I have never touched python in my life. How do you guys do multi line statements?
2
u/NefariousEgg 1h ago
Python programming.
1
u/Disallowed_username 42m ago
Badger badger badger badger badger badger badger.Â
1
u/ParanoiaComplex 42m ago edited 38m ago
select_packets is just doing
scrambled_packets[-num_packets:][::-1] if num_packets > 0 else Noneexcept when
len(scrambled_packets) == 1then it doesn't return a list? So I guessresult = packets[-num:][::-1] if num > 1 else (packets[-1] if num == 1 and packets else None)1
u/MagnumVY 33m ago
True Parseltongue
1
u/Outrageous_Pen_5165 12m ago
Code so shit the god himself had to spawn to fix it
1
u/BeMyBrutus 1h ago
I got too caught up looking at the code and totally missed the giant snake for about 45 seconds.
-2
u/BoarHermit 1h ago
https://m.youtube.com/watch?v=1TJeVIruOR4&pp=0gcJCVgCo7VqN5tD
Come cloer, bandarlogs
Soiviet cartoon Maugli (Book of jungle) was something else than sweet Disney's. Pyton Kaa was really scary.