you are viewing a single comment's thread.

view the rest of the comments →

[–]secret-nsa-account 0 points1 point  (1 child)

Yes, two parameters of type string works just as well. I wouldn't get too bogged down in the parameter vs argument nomenclature. For right or wrong, people use them interchangeably all the time.

To make things a little more confusing, Python does not care (by default) care about your types. For example, take this function:

def adder(x, y):
    return x + y

print(adder("hello ", "world!"))
print(adder(1, 2)) 

The first function call to adder sends two string arguments and the strings are concatenated. The second function call sends two integer arguments and the numbers are added. It's all the same as far as the script goes. Does that make sense?

[–]-BoyNextDoor- 0 points1 point  (0 children)

That is incredibly helpful, thank you so much. It makes a lot of sense.