
March 3, 2022
10:30 a.m.
On 3/03/22 9:50 pm, Steven D'Aprano wrote:
While you can put the block on the same line as the colon using semicolons:
if condition: print(1); print(2) # Legal.
and there's nothing to stop you from making arbitrarily long lines using this feature... if condition: print(1); print(2); print(buckle); print(my_shoe); print("Is this line long enough yet?") So if Python is opinionated about line lengths, it's rather selectively opinionated. -- Greg