Python : Expenditure App
Expenditure Application
leveling the Ground:
In this post we will assume that we have a folder for our application, and we will create two files one is for our python code and we will name it “expen.py”, the other is for our data and we will name it “expen_dat.json” this file extension is ‘json’. Also I assume that we have json pack is installed in the PC so if you don’t have json this is the time to install it.
json file:After you create expen_dat.json file just open it with any text editor and copy a test data of our expenditure as shown.
{“expenditure”:
[
{“date”:”02/03/2016″,”amount”:300},
{“date”:”10/04/2016″,”amount”:550},
{“date”:”02/05/2016″,”amount”:300},
{“date”:”10/04/2016″,”amount”:550},
{“date”:”02/03/2016″,”amount”:300},
{“date”:”10/04/2016″,”amount”:550},
{“date”:”05/01/2017″,”amount”:400},
{“date”:”10/02/2017″,”amount”:400},
{“date”:”15/03/2017″,”amount”:400},
{“date”:”20/04/2017″,”amount”:400}
}]
In next post we will start with coding and testing our Expenditure Application.
I will use the @pycharm to write the code and test it, but any other code editors can be used. Also, I assume we have Python and json installed in your PC.
-
December 2, 2018 at 11:00 amPython : Expenditure App | Ali's Photography Space...
-
December 4, 2018 at 10:52 amPython : Expenditure App | Ali's Photography Space...