Write a program to print the following pattern using for loop: (2 marks)
? ? ? ? ? ?
? ? ? ? ?
? ? ? ?
? ? ?
? ?
?
Num = 6 for r in range(0,Num): s="" for c in range(0,Num-r): s = s+ "? " print(s)
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment