r/ProgrammerAnimemes • • Aug 10 '19

Make your code Elegant

Post image
1.2k Upvotes

41 comments sorted by

View all comments

Show parent comment

5

u/-Redstoneboi- Aug 11 '19

Thanks! I was wondering if Python had some kind of list summation function, it does.

The C/++ for loop style and list iterating from 1 instead of 0, as well as the unnecessary variable declaration also made me uncomfortable.

Like, really uncomfortable.