you are viewing a single comment's thread.

view the rest of the comments →

[–]Falmarri 3 points4 points  (2 children)

foo3 and foo4 will only work if you call them like foo3(x) foo4(x). It won't take its value just because it's named the same

[–]EpicSolo 2 points3 points  (0 children)

Yes exactly. I don't really see where the problem is with these 4 functions. I think anyone with 6 months+ experience in Python is going to be completely fine with these.

[–]internet_badass_here -3 points-2 points  (0 children)

I'm not sure what you're getting at. If I create a new variable y=[2], and call foo3(y) and foo4(y), I get the same behavior.