176k views
4 votes
How to use function in python

1 Answer

5 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 Ashish Mishra
by
4.8k points