Sitemap
Niraj Bassnet

Niraj Bassnet

Python Basic to Advance Series

2 min readJun 18, 2026

Day 3

Lets practice to write some basic codes in python, like;

  1. How to create a Money Splitter Calculator in Python?
  2. 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:
Press enter or click to view image in full size
Python code written in vs code application for money splitter calculator

    Get Niraj Bassnet’s stories in your inbox

    Join Medium for free to get updates from this writer.

  • now, save this by pressing ctrl+S.
  • Finally print the data in terminal window — type ‘python moeny_splitter_calculator.py’ and press enter.

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:
Press enter or click to view image in full size
sample: python code written in vs code for simple interest formula
  • 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.

--

--