Create a Python function that generates random numbers from 1 to 20 and appends them to a List
Due on April 6, 2022 @ 5:00 pm
Objectives–The goal of this lab is to practice Python programming: functions & files
Before you start – The prerequisites for lab 6 are still standing for this lab.
Create a Python function that generates random numbers from 1 to 20 and appends them to a List. The function will prompt the user for the list’s length, after which it will generate random integers ranging from 1 to 20 and append them to it. Make sure that the main program will print out the list.
To test your program.
What to submit
Create a folder called “Lab_8.”
You must submit the source code for all exercises above. The source code files will be
saved in the “Lab_8” folder that you created on your hard drive.
Name each source code file as follows: exercise.py
Zip your folder “Lab_8” as a SINGLE zip file. The zip file should be named:
“lab8_S22.zip.”Any other file format will be rejected, and you will get Zero for this portion of your lab work.
It’s your responsibility that the zipped file of your submitted work is not empty or
damaged