Keen Learner and Exp... • 24d
Day 12 of learning python as a beginner. Topic: object oriented programming (OOP). Yesterday I shared a journal taking app and many people suggested that it would be great if I used classes. Initially I was not aware of what classes actually are and today I decided to learn just that. Also I think that I might need a little more practise in this to get it on my finger tips. A class is like a blueprint of creating objects it allows you to group data (attributes) and functions (methods) together under one structure. It is just like some sort of empty template. The __init__ or initialize contains a set of default vales which can be modified later in the program. The self here refers to the current object. using this knowledge I tried to create a basic banking app where you can check your balance (not real of course), deposit money, withdraw money and get account info. In class I created account_info function which I will be using to check the account info. then I used dictionary as a database. and created a user_identity function to match that the name is actually present in the database i.e. the dictionary. Then I used my if elif and else table to match all the situations and to give the most appropriate result. I was also about to add some more function but then realised that the day is almost over and I have to give an update. 😅 Here's my code and it's result. Feel free to ask any questions and to give any suggestions and challenges which will help me improve.
Keen Learner and Exp... • 23d
Day 13 of learning python as a beginner. Topic: create a meeting booking program with classes. Yesterday I shared my banking program and many amazing people pointed out that I didn't used classes properly and the code looks more like script. So I o
See MoreKeen Learner and Exp... • 12d
Day 24 of learning python as a beginner. Topic: decorators Somebody has suggested me that I should focus on some of the important things and he gave me a list of topics to learn. Decorators were at very top of that list and therefore I decided to l
See MoreEarly Retiree | Fina... • 11m
The ability to work goes down once you have stopped working. Couple of classes / recordings a day was sort of usual for me. Couple of times a month it used to be 6-8 hours of live classes as well. Now if I have to do even half of that - it feels
See MoreKeen Learner and Exp... • 25d
Day 11 of learning python as a beginner. Topic: creating journal entry program using file I/O. I got a little sidleline from my original plan of editing my to-do list program and created an entirely new program this time for writing a daily journal
See MoreKeen Learner and Exp... • 17d
Day 19 of learning python as a beginner. Topic: JSON file (exploring surface). JSON stands for JavaScript Object Notation however it is not limited to JavaScript only. JSON is used to store and share structured data which is both readable by human
See MoreDownload the medial app to read full posts, comements and news.