Write a program to print a pattern of stars (*)
Topic: Write a program to print a pattern of stars (*)
Solution
for row in range (0,5): for column in range (0, row+1): print ("*", end="") # ending row print('\r')
List all Python Programs
Solution
for row in range (0,5): for column in range (0, row+1): print ("*", end="") # ending row print('\r')