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

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

1 Expert Approved Answer
Step: 1 Unlock

Sure heres a Python program that generates 100 random numbers between 1 and 100 convert... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!