Is passing a number in the same as using that number as the argument?

Yes, they are. What we pass in through the function call argument becomes the formal parameter of the function, and given a local name.

>>> def foo(number):     # formal parameter => number
    return ''.join(['*'] * number)

>>> foo(25)              # argument         => 25
'*************************'
>>> 
6 Likes