Click here to Skip to main content
15,066,328 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello
what is function in python and how to use program function in python
thank you

What I have tried:

learn, but I don't really understand. can someone help me
Posted
Updated 1-Feb-21 20:28pm

If you are new to a language then you will learn it much more easily by following a proper tutorial: The Python Tutorial — Python 3.7.9 documentation[^].
   
In a plain words imagine a function like a box...In this box some arithmetic operations are done...Once these operations are done then the box produces some effect (output or return). This will usually be an integer or float or string or boolean. In some cases we input in this box some variables (parameters). These parameters get inside of the function (box) and they used for calculation (Function schematic). Study first the meaning of the function in mathematics. See the link Functions.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900