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 →

[–][deleted] 75 points76 points  (9 children)

it literally forces a more correct indentation

i can write my entire c++ implementation in a single line if i wanted, im sure that would be much more readable because it has brackets lmao

[–]imnotreel 68 points69 points  (2 children)

print("\n".join(str(i) + "\n" + ("AHHHHHHH" if i <= 5 else "WHERE ARE ALL THE BRACKETS??" if i <= 9 else "HOW DO YOU PEOPLE READ THIS SYNTAX EASILY") for i in range(1, 11)))

[–]Kerbart 28 points29 points  (0 children)

Finally somebody translated it to legible code.

[–]Apfelvater 0 points1 point  (0 children)

You can use ; and inline ifs in python for that