def greeting(name):
print('Welcome,', name)
greeting()
Traceback (most recent call last):
File "<stdin>", line 9, in <module>
TypeError: greeting() missing 1 required positional argument: 'name'
Python complains about TypeError
- the function pozdrav
did not receive the mandatory argument name
.