+ 2
Is there a difference?
"""Is there a difference?""" print('Hello World!') print("Hello World!") print("Hello World!"); print('Hello World!'); output: Hello World! Hello World! Hello World! Hello World!
1 Odpowiedź
+ 4
On just the semicolons, tested with a bytecode disassembler:
Python does not appear to generate extra opcodes (instructions) for the semicolons, even if you use them as intended, to separate same-line statements:
print(...); print(...)
There may be a preprocessor effect (?) but I suspect it's negligible.
[meta] Just to be complete...
https://code.sololearn.com/cxYMW29npKWp/?ref=app