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 to

 Create a python program that creates a file named randNums.txt and

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!