Question: 1. Write a program that reads a file containing a list of numbers, and displays the sum. 2. On July 16, 1969, the Apollo 11

1. Write a program that reads a file containing a list of numbers, and displays the sum.

2. On July 16, 1969, the Apollo 11 spacecraft launched from Earth. Write a function named countdown() that can simulate a launch countdown, starting from 10 and counting down to 1, followed by the word LIFTOFF !! Heres what the output should look like when you call the function:

10 9 8 7 6 5 4 3 2 1 LIFTOFF !!

(Advanced): Import the time module to use the sleep function to make the countdown more realistic: import time # This will make the computer wait for 1 second time.sleep(1)

In Python.

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!