363,475 views
10 votes
10 votes
How to use function in python

User Ndrplz
by
2.6k points

1 Answer

18 votes
18 votes

Answer:

Use the keyword def to declare the function and follow this up with the function name.

Add parameters to the function: they should be within the parentheses of the function. ...

Add statements that the functions should execute.

User Eindbaas
by
3.3k points