Day 07 of Coding with Agnel
What is a function (or method) in programming?
It's very simple asking someone to do some work.
Example:
If you ask your mom for tea, what will she do?
She will turn on the stove
Boil the milk
Add tea powder
And finally, she will give you the tea you asked for!
Likewise, in programming, each function does a specific task.
Now, let's say I create these functions:
function apple()
function samsung()
function momTea()
When I call these functions by their names, they will perform their tasks and give outputs like:
Apple, Samsung, and Mom Tea respectively.
✅ This is how functions work!
If you want to learn coding in the simplest way, just follow Error Makes Clever!
To know more watch the full video & Stay tuned here for the tech insights
Follow us on Instagram : https://www.instagram.com/errormakesclever/?hl=en
Follow us on linkedin : https://www.linkedin.com/company/errormakesclever
Follow us on facebook : https://www.facebook.com/errormakesclever/
Subscribe : https://www.youtube.com/@ErrorMakesClever
Website: https://www.errormakesclever.com/
#coding #function #tech #codingtutorial #errormakesclever
Did you miss our previous article...
https://learningvideos.club/computer-technology/what-is-python-python-explained-in-2-minutes-for-beginners