missing def definition

This commit is contained in:
Carlos Alarcon 2019-12-03 21:56:33 +01:00 committed by GitHub
parent 344eceae48
commit 0d59c44b07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -592,8 +592,9 @@ Sometimes we pass default values to parameters, when we invoke the function if w
````
**Example:**
```py
message = name + ', welcome to Python for Everyone!'
return message
def greetings (name = 'Peter'):
message = name + ', welcome to Python for Everyone!'
return message
print(greetings())
print(greetings('Asabeneh'))