You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
440 B
Python
12 lines
440 B
Python
# In this example, I use def to define the function named (names_of_fruits),
|
|
# the parameter is (fruits) and the argument is 'Apple'.
|
|
|
|
def names_of_fruits(fruit): # first line of FUNCTION DEFINITION
|
|
print("I love to eat %ss!" % fruit) # second line
|
|
|
|
names_of_fruits('Apple') # FUNCTION CALL here!
|
|
|
|
|
|
# Function calls have arguments, like 'Apple' here, and function definitions
|
|
# have parameters,
|