Math, asked by Ananya001, 11 months ago

function in python explanation​

Answers

Answered by cheekuO2
3

ᴘʏᴛʜᴏɴ ғᴜɴᴄᴛɪᴏɴ

A function is a block of organized, reusable code that is used to perform a single, related action. Functions provide better modularity for your application and a high degree of code reusing.

As you already know, Python gives you many built-in functions like print(), etc. but you can also create your own functions. These functions are called user-defined functions.

ᴛʜɴᴋs❤️

Answered by divyansh5237
4

Answer:

Functions in Python

A function is a set of statements that take inputs, do some specific computation and produces output. The idea is to put some commonly or repeatedly done task together and make a function, so that instead of writing the same code again and again for different inputs, we can call the function.

Python provides built-in functions like print(), etc. but we can also create your own functions. These functions are called user-defined functions.

hope this helps ❤️❤️❤️

Similar questions