code for the following pattern in python

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

           

           *****

           *****

           *****

           *****

           *****

*****

*****

*****

*****

*****

3 Answers

–2 votes
answered May 25 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 by lucky charmers (390 points)
Check your code my friend before answering.
0 votes
answered May 26 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 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.
...