Practice Makes Perfect: Question


#1



Can someone please explain to me what the (9) means, in the last line of code.
by_three(9)


#2

This executes the method by_three, providing 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

then by_three(9) would simply return 3.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.