#Python Pop Quiz 🐍❓
What is the output when you run this code?
A) 5
B) 4
C) 3
D) 2
E) An exception is raised
#Python Pop Quiz 🐍❓
What is the output when you run this code?
A) 5
B) 4
C) 3
D) 2
E) An exception is raised
@driscollis Option "C"
I usually use literal string concatenation in command line scripts that have long output lines.
Fun fact: the concatenation happens in bytecode compile time, so the tradeoff is some more cycles in startup time to save some cycles at runtime.
Reference: https://docs.python.org/3/reference/lexical_analysis.html#string-literal-concatenation