css lab activity
Work through the Module 9: Lab Activity (located in this module) and submit the deliverables listed in the document to this assignment submission folder for a grade. This assignment is due by Sunday at 11:59 PM CT.
Module 9: Lab Activity While Loops
Deliverables:
Python programs for the following problems. Use the names listed below:
Problem1Infinite.py
Problem2NumList10.py
Problem3NumList35.py
Problem4NumListDivide.py
All submitted code must include comments:
# Your Name
# The Date
# The Problem Number and Description
# Any other information throughout your code that is helpful
Problem 1: Write an infinite loop that prints Infinite. An infinite loop never ends. The condition is always true.
Problem 2: Using a while loop, create a list called L that contains the numbers 0 to 10. On each iteration, the loop should append the current value of a counter variable to the list and then increase the counter by 1. The while loop should stop once the counter variable is greater than 10.
Problem 3: Using a while loop, ask the user to enter a number. Append each entered number to a list and add them together. Continue asking for a number until the sum of the list of numbers is greater than 100.
Problem 4: Create a while loop that initializes a counter at 0 and will run until the counter reaches 50. If the value of the counter is divisible by 10, append the value to the list called tens. Confirm the list results using a print statement.