Add function info
This commit is contained in:
parent
8c945c47ca
commit
2994c7457b
|
@ -148,6 +148,25 @@ month = now.month
|
|||
day = now.day
|
||||
```
|
||||
|
||||
# Function P3 Ch.2
|
||||
|
||||
## Defining a Function
|
||||
```
|
||||
def greet_customer():
|
||||
print("Welcome!")
|
||||
```
|
||||
|
||||
## Calling Functions
|
||||
```
|
||||
greet_customer()
|
||||
```
|
||||
|
||||
or if it has parameters:
|
||||
|
||||
```
|
||||
greet_customer(1,ten)
|
||||
```
|
||||
|
||||
# Fun Projects
|
||||
|
||||
Design a shop using Ex7 and Ex9 as a frame:
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 51550dc123eab347873de585140948f645908797
|
Loading…
Reference in New Issue