MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/igvny1/python_goes_brrrr/g2ww0w3/?context=3
r/ProgrammerHumor • u/das_freak • Aug 26 '20
789 comments sorted by
View all comments
31
best feature of python I used recently was solving a projecteuler.net problem and utilizing the fact that list[-x] means x elements back from the end of the list, simplified the code so much
2 u/Sarcastinator Aug 26 '20 C# supports this as well though the syntax is different.list[^1] → More replies (3)
2
C# supports this as well though the syntax is different.
list[^1]
→ More replies (3)
31
u/juzz_fuzz Aug 26 '20
best feature of python I used recently was solving a projecteuler.net problem and utilizing the fact that list[-x] means x elements back from the end of the list, simplified the code so much