r/ProgrammerHumor • • Aug 26 '20

Python goes brrrr

Post image
59.2k Upvotes

789 comments sorted by

View all comments

2

u/[deleted] Aug 26 '20

I remember code where we did:

def get_number_of_thingies(thingies_per_section, number_of_sections):
    number_of_thingies = thingies_per_section * number_of_sections
    return number_of_thingies

without realizing that thingies_per_section was a string ... with a value in the millions. The result was a string the size of a several novels.