Question: Write a function in PYTHON called save _ rand _ num, which takes two parameters: upper _ bound and how _ many with default value

Write a function in PYTHON called save_rand_num, which takes two parameters: upper_bound and how_many with default value 100 and 20, that is, if you call the function without passing arguments, the default values 100 and 20 will be used: generate 20 random numbers within the range 1..100.
The function saves each number generated in a output file called rand_data.txt

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!