r/pythonhomeworkhelp • u/hcwestley • Mar 24 '21
Random number into list
Hello... I am stuck on an assignment:
"Generate a two-column and 21-row file with random values using file operation and the random method
Example:
Name0 0.8100797727702638
Name1 0.8876938145132516
Name2 0.3928158570421808
Name3 0.7483429697454923
...etc until 20
Read in the file, output the two columns in ascending order of the random values
Identify the minimum value, maximum value, median, and the average of these values."
What I have so far:

3
Upvotes