What I did Today
1.Learnt about Python functions from 1st principles.
2.Created python scripts on the above
3.Tracked , commited and pushed to github
On what I learnt today
A functions is a block of statement that performs a certain actions.
Functions bring modularity and reusability to our code.
A function usually has a return statement.Optional but advisable to have a return statement in a function.
A return statement allows us to reuse the function as the result / value is already stored.
For a print statement once executed its not reusable whereas in return statement sends back the value so that it can be stored and reused
Example in action:
Resources I used
1.Python refresher series by Bonaventure Ogeto on youtube.
2.Github for documenting my python learning journey by pushing to public repo python-concepts.
What's Next
Tomorrow I'll build a simple BMI calculator app but now impliment functions.

Top comments (0)