Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
thealex11076y@ruhe That would be too obvious, they needed the assignment to trick me into believing that the function does something 😀
-
ruhe9126y@PrivateGER that's a very philosophical question.
Does it return all_lines countless times or does it return not at all? -
BigBoo23126y@ruhe It's not philosophical. The function has to be evaluated before returning. So it will just deepdive and go bye bye.
-
not used to python but isnt that just a setter that also returns the resulting state? could be useful... if the assignment of all_lines is somehow changing the data... the function/variable names are confusing as hell though.
Related Rants
When you tell students to use functions...
joke/meme
functions
you tried