Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

code for the following pattern in python

+3 votes
asked May 22, 2020 by lucky charmers (390 points)
print following pattern using function

           

           *****

           *****

           *****

           *****

           *****

*****

*****

*****

*****

*****

3 Answers

–2 votes
answered May 25, 2020 by Pavan Nagendra (100 points)
P=eval(input("enter the number of stars required to print in the pattern:"))

From math import *

n==*

Print(
commented May 25, 2020 by lucky charmers (390 points)
Check your code my friend before answering.
0 votes
answered May 26, 2020 by Leona123 (140 points)
p = eval(input("enter the no of stars to be printed:")

from math import *

n == *

print(*)
0 votes
answered May 29, 2020 by ABDUL AHAD (140 points)
n=int(input('Enter the number of stars to be printed: '))
for i in range(n):
    print(' '*n,'*'*n)
    print(''*n)
for i in range(n):
    print('*'*n)
    print(''*n)

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...