1. Create a python script to creat a list of 100 random numbers. Save those 100
ID: 3548329 • Letter: 1
Question
1. Create a python script to creat a list of 100 random numbers. Save those 100 numbers to a file.
2. Create a python script to read the file of 100 random numbers. Sort the numbers, count the numbers of compares in the sort, store the sorted numbers back in a new file.
3. Write a python script to read the sorted list from the file and create an associated list (dictionary) with the numbers and a randomly assigned number for each of the input numbers. Write the dictionary back out to a new file.
4. Write a python script to create a second dictionary with the same numbers from 2 above as the key and a random string of 5 characters as the value. Write out the dictionary in a new file.
5. Write a python script to read the two dicitonary files and create a web page that lists the random numbers and random strings associated with the same key.
Explanation / Answer
https://www.dropbox.com/sh/e5g823lrsrf4cs3/cORm3xgPQH
Download the code of all five parts from the above link.
first run 1.py.. then 2.py and so on..
please comment in case of doubt..
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.