Question: Declare a function and you decide the functions name. Do the following inside this function: Create an empty list, you decide the variable name. Using

Declare a function and you decide the functions name. Do the following inside this function:

Create an empty list, you decide the variable name.

Using a for loop to generate X random numbers (X will be the number you get from the user) and add the random numbers into the above list one by one. You can choose what range of random numbers.

Print the list outside of the loop.

Ask the user for a number.

Call the function above.

Create another function and you decide the functions name. Print the following inside this function:

Note:

The shape above 10 rows and 100 columns

You must use two for loops, one loop inside another one.

To prevent starting on a new line, you need to use print("*", end="")

Print() will start a new line without print anything.

Call the function above.

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!