Merge pull request #10 from jchuerva/patch-2

Missing def definition
This commit is contained in:
Asabeneh 2019-12-03 23:32:15 +02:00 committed by GitHub
commit f8d2f75fc6
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'))