Python Basic to Advance Series
Day 3
Lets practice to write some basic codes in python, like;
- How to create a Money Splitter Calculator in Python?
- How to write a code for Simple Interest Calculator?
Steps to write a code of money splitter calculator :
- open VS Code application in ‘Python Learning’ folder in desktop. (as we already have this folder, if not you can open application directly also)
- create a new ‘money_splitter_calculator.py’ file from explorer option in vs code application.
- write the following code:
- now, save this by pressing ctrl+S.
- Finally print the data in terminal window — type ‘python moeny_splitter_calculator.py’ and press enter.
Get Niraj Bassnet’s stories in your inbox
Join Medium for free to get updates from this writer.
Steps to write a code of simple interest calculator :
- open VS Code application in ‘Python Learning’ folder in desktop. (as we already have this folder, if not you can open application directly also)
- create a new ‘simple_interest.py’ file from explorer option in vs code application.
- write the following code:
- now, save this by pressing ctrl+S.
- Finally print the data in terminal window — type ‘python simple_interest.py’ and press enter. Congratulations you have the result in terminal window.
Likewise you can practice writing basic python codes in different problems or situations you are experiencing like; electricity bill (no. of units * price per unit), any basic calculator that uses (add, sub, multiply or divide) . thank you.







