Question: Create a python program that creates a file named randNums.txt and writes a series of 100 random numbers, each having a value of 1
Create a python program that creates a file named randNums.txt and writes a series of 100 random numbers, each having a value of 1 to 100, one per line, to the file. Note that you need to convert the number generated to a string value before writing it to the file. Recall that the random library is required. Note: you must use the filename specified, or your output will be marked wrong. Answer: (penalty regime: 0 %) 1
Step by Step Solution
3.38 Rating (157 Votes )
There are 3 Steps involved in it
Sure heres a Python program that generates 100 random numbers between 1 and 100 convert... View full answer
Get step-by-step solutions from verified subject matter experts
