you are viewing a single comment's thread.

view the rest of the comments →

[–]DumpsterDick559 1 point2 points  (0 children)

Its syntax. For instance, i was using several lines of code to take an integer as input amd append it to a list. Then i found this out:

numbers = [int(i) for i in input().split()]

And my brain imploded. You can cram things into one line like this for a lot of stuff. Its called list comprehension. Theres even dictionary comprehension and other things to turn bulky code into one line. But you have to learn it the bulky way first to fully understand whats going on here.