Keen Learner and Exp... • 2d
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 once agained learned about classes and created a meeting booking app. __str__ is used to structure the data in a human redeable format. and yes it also gets executed automatically cause it is also a dunden function. I used two classes one for categorising meeting data and the other for actually managing the meeting. I used the usual init constructor and passed 5 arguments through it which stores the value in the object. The I used file I/O to create and save scheduled meetings. The user can book a meeting which will schedule a new meeting (please don't get confused it didn't schedule any real meeting) and the user can also reschedule and cancel the meetings which will overwrite the schedule meeting file. The program reads ever line in a loop to find the "date" (which user enters) to identify which meeting needs to get rescheduled or cancelled. Then the script begin which calls out all these functions and classes as per the user's need (which he tells through input). and I wrapped all the script in a while true loop so that the program keeps on running until the user voluntarily exits or stops it.
Keen Learner and Exp... • 4d
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... • 13d
Day 2 of learning python as a beginner. Topic: Conditional Expression Conditional expression pose a condition (if and Else statements). They help program take decision based on the condition given. They can be used inside a function or while assign
See MoreKeen Learner and Exp... • 8d
Day 7 of learning python as a beginner. Topic: making a dynamic to-do list. Yesterday I created a basic to-do list and some people suggested and gave me a challenge that I should make it more dynamic so that the user can choose the day where he wan
See MoreDownload the medial app to read full posts, comements and news.