This activity allows students to practice how to compress and upload files as required when delivering programming activities and practical exams.
Individually, use Spyder to create the following files in your computer’s desktop with the indicated content (you can just copy paste the content). Don't forget to include your student ID and name in each file.
File hello.py
# Type your student ID and name here. # # File: hello.py def main(): print("Hello World!") main()
File name.py
# Type your student ID and name here. # # File: name.py def main(): name = input('What is your name? ') print('Hello', name) main()
File speed.py
# Type your student ID and name here. # # File: speed.py def velocity(distance, time): return distance / time def main(): d = float(input("Distance in meters: ")) t = float(input("Time in seconds: ")) print("Speed =", velocity(d, t), "m / s") main()
Create a ZIP file called test.zip
containing the three files: hello.py
, name.py
, and speed.py
.
To deliver the test.zip
file, please provide the following information: