Posts

Day 1 of 100 Days of Python

Image
Today is the first day of the coding challenge I took (although by the time I finish writing this post, it will be past 12 in the morning). Yesterday, I played around with basic Python syntax, such as print, which lets us display text in the console. Today, my goal is to learn more about basic Python syntax and work through a few practice questions. This was one problem that I solved yesterday. These kinds of questions are asked repeatedly in board exams, and I am very familiar with them. I will do more of these kinds of questions tomorrow. #Electricity Bill question in Python # An electricity board charges for electricity delivered to domestic consumers based on the number of units consumed. # For the first 100 units: ₹4.00 per unit # For the next 200 units: ₹6.00 per unit # Beyond 300 units: ₹8.00 per unit # A fixed meter charge of ₹200 is added to every bill. # Given the units consumed, calculate the total bill. units = int(input("Enter units consumed")) fixc = 200 amt = 0...

100DaysofPython: Day 0

Image
Python is one of the most popular programming languages. It is simple to understand and easy to learn for beginners. Although I am not exactly a beginner. I did spend 4 years in school (from grade 9 to 12) in school learning Java and practising problems like String Manipulation, Array Operations and recently Stacks and Queues. I am starting college this year, and the syllabus includes Python. So, to get used to a completely new programming language and to brush up on my existing programming skills, I have decided to challenge myself with the 100 Days of Python Challenge. As the name suggests, I will practise Python for the next 100 days and give my all to at least get to the intermediate level. I will also try some interesting Python projects to showcase on my GitHub profile. I was supposed to post this, actually, yesterday, on 19th June, which I decided to call Day 0 (for getting to know basic Python commands like 'print' statements and variables). But, I started late at night...