mirror of
https://github.com/Asabeneh/30-Days-Of-Python.git
synced 2026-06-15 21:20:29 +08:00
commit
f8d2f75fc6
@ -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'))
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user