Call the function and assign the output the result variable.
call function: add(1,2)
This function is named add. it has two parameters (x,y)
Functions
m
Defining functions
def
add(x,y):
print('Performing addition')
return
x+y
output:
Performing addition
3
result = add(1,2)
Functions
100
%
200%
150%
100%
75%
50%
Mindmap an Fenster anpassen
Klicken Sie hier, um das
Diagramm zu zentrieren.