Can someone please explain to me what the (9) means, in the last line of code. by_three(9)
This executes the method
9 as an argument (or parameter) to be used inside of that method as input.
For example, if
by_three were defined like so (hypothetically):
def by_three(num): return num / 3
by_three(9) would simply return
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.