wap to print following code in python
Attachments:
Answers
Answered by
1
Answer:
for i in range (1,r+1)
if i % 2 ! = 0:
if i = = 1 :
print (" * ")
if i = = 3 :
print (" *** ")
if i = = 5 :
print (" ***** ")
if i = = 7 :
print ("*******")
hope it is helpful please mark me as brainliest
Answered by
1
Answer:
Hey! Here is your python code...
n = 40
for i in range(1, 11):
print(' '*(n-i) + '* '*(i))
# HOPE THIS HELPS YOU!!
Similar questions