Basically, this program takes the minimum, maximum and interval of all the stars and prints the asterisks accordingly. I have written the python code as:
print("This program prints out lines of stars\n\n")
minimum=int(input("What is the minimum number of stars?"))
maximum=int(input("What is the maximum number of stars?"))
interval=int(input("What is the interval?"))
print("\n")
for i in range(minimum,maximum+1,interval):
for j in range(i):
print("*",end='')
print(" (%d stars)"%i)
Sample Run-
This program prints outlines of stars.
What is the minimum number of stars? 3
What is the maximum number of stars? 15
What is the interval? 4
*** (3 stars)
******* (7 stars)
*********** (11 stars)
*************** (15 stars)