Day 48 /100 Days Coding Challenge | Python Tutorial: Calculate Electricity Bill with Slabs |

preview_player
Показать описание
you need to write a program to calculate the electricity bill for a household, based on the units of electricity the household consumed. The price for unit varies based on the slab. The charges per unit for different slabs are as mentioned below : For the first 50 units(0-50), the charge is 2/unit For the next 100 units (51-100), the charge is 3/unit For the next 100 units (151-250), the charge is 8/unit Apart from these charges, there is also an additional surcharge of 20% on the total amount is added to the bill. Input: The input will be a single line containing an integer . Output: The output should be a single line containing the calculated bill amount. Sample Input and Output are also be given for your reference in the above video
#Python, #CodingChallenge, #ElectricityBill, #PythonTutorial, #100DaysOfCode, #Programming, #Tutorial, #PythonProgramming, #Coding, #CodingTutorial, #PythonCode, #BeginnerPython, #ProgrammingTutorial, #CodeTutorial, #LearnPython, #PythonBasics, #CodingProblem, #CodingSolution, #PythonScript, #ProgrammingChallenge, #PythonDevelopment, #Algorithm, #Optimization, #PythonFunctions, #YouTubeTutorial, #Subscribe, #Like, #Share, #Surcharge, #ElectricityConsumption, #PythonLogic, #ProgrammingLogic, #TutorialSeries, #PythonLearning, #CodingSkills, #CodeOptimization, #PythonProject, #CodingExample
Рекомендации по теме
visit shbcf.ru