Python Functions

Python Functions

•A function is a block of code that performs a specific task. •Suppose we need to create a
program to make a circle and color it. We can create two functions to solve
this problem:
•function to create a circle
•function to color the shape
•Dividing a complex problem into smaller chunks makes our program easy

to understand and reuse.

You have completed 0% of the lesson
0%