16 Answers
New AnswerPython pattern printing
5/19/2022 2:52:29 PM
alagammai uma16 Answers
New AnswerI don't understand yet how the numbers should be arranged but you might want to do something like that? https://techpluslifestyle.com/technology/triangle-shape-in-python/
alagammai uma printing to 101 might be too big for small screens and would result in line breaks. also, use this: for i in range(1, 5): row = str(i)+" " print(" "*(5-i)+row*(i))
alagammai uma It looks like you're being a bit too vague in your programming. Like right now, you're only telling the computer to print out numbers with a space at the end and beginning.
By "perfect triangle" do you mean a) equilateral triangle b) triangle with perimeter equal to its area? Please give an example
I tried using 2 loops from 1 to 100 range but it isn't the correct pattern what's needed
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message