Hi guys, what does it mean to use a number as an argument in a Python function?

Hello @julia_ayrapetyan.
It means to have one the function’s parameter acting as an integer:

def a_fun(x, string):
  an_int = x + 4
  return string + "hi"

The way you define the parameter is the same as any other data type of parameter.
I hope this helps!

1 Like

Oh okay, that makes sense. Thank you!

1 Like