Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

# Roman Numeral Lab Python Conditionals and Functions Part 1: 1) Write a Python program, that prompts the user to enter a number within the range of 1...

Random Star Patterns

Instructions:

1) Write a program that asks the user for a number (integers between 1 and 15, then uses a loop to

display the same number of adjacent stars (asterisks). Put this in a loop that repeats 5 times. For

example, if user enters 5, 9, 3, 11, and 8, your output should look like:

How many? 5

*****

How many? 9

*********

How many? 3

***

How many? 11

***********

How many? 8

********

2)  Modify the program to use random numbers instead of getting numbers from the user. Add

this to the top of the file (just below the header comment)

import random

Now rather than getting each of the five numbers from the user, get them using

number = random.randint(1, 50)

Change the program so it prints 50 lines of stars instead of 5

import randomfor i in range(50):number = random.randint(1, 50)for j in range(number):print('*', end = '')print('')