Computer Science, asked by shahnashahnawaz15, 7 months ago

Write a python program for
*
*
*
*
*
*​

Answers

Answered by mohid3009
0

Answer:

If u want for a specific number of time

times = 10 #change this value if u want

for i in range(times):

           print('*')

    (or)

times = 10

i = 0

while(i <= times):

      print('*')

      i = i+1

if u want it to run forever , until u stop it use this code

while(True):

     print('*')

For each loop use an indentation or else it wont execute

Answered by anindyaadhikari13
1

Question:-

Write a Python Program to display the pattern.

*

*

*

*

*

Program:-

This is the requires program.

n=int(input("Enter the number of rows: "))

for i in range(0,n):

print("*")

Similar questions