Question: 1. Use the range function and a for statement to calculate the total of the integers from 0 through 100,000. 2. Write a program that

1. Use the range function and a for statement to calculate the total of the integers from 0 through 100,000.

2. Write a program that reads from words.txt (which the file is attached to this project) and prints only the words with at least 19 characters (not counting whitespace). Output in the Shell should have 24 words.

The words.txt file must be included in your zip folder you turn in.

3. At the end of 2020, the national debt in the US was 27.74 trillion dollars. In theory, says the debt will rise by 7.3% every year. Write a program showing what the debt will be each year to 2035. You can use a string stating your figures are in the trillions and must use 2 decimal points. The output in the shell should be every year from 2021 - 2035 with a result. Do not give me the result that's only for 2021 and 2035.

4. Write a program that reads the number of inches entered by the user. Then converts to feet and inches. I must be able to enter a number in this program to produce the correct answer.

Example:

Enter inches: 75

75 inches is 6 feet and 3 inches

5. For the following dictionary, roman_numerals = {'I': 1, 'II': 2, 'III': 3, 'V': 5, 'X': 10, 'L': 50} Create a program that does the following create a list of its keys create a list of its values create a list of its items The lists you created in the program must display in the Shell once the program ran.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!