Question: I need help with this assignment in python. The top part is the assignment, the part in bold on the bottom is the output. 5
I need help with this assignment in python. The top part is the assignment, the part in bold on the bottom is the output.
5 While loops - Using a while loop, if statement(s) and str() function(s); iterate through the list my_list =[10,99,98, 85,45,59,65,100,76,12,35,13,100,80,95] and if there is a 100 , print it with its index number. E.g. "There is a 100 at index no: 7" - Write a while loop that adds all the numbers up to 100 (inclusive). - Write a program to calculate the electricity bill according to the following criteria and test on these values: 99,120,200,300 First 100 units no charge Next 100 units $5 per unit After 200 units $10 per unit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
