Day 1 of 100 Days of Python
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...