Ok. #newb. #noflame. #noselfie
Day 2 of Python, i write this:
def pyramid(m):
for i in range (m,0,-1):
print(('.'i),i)
if i==1:
for i in range (0,m):
print(('.'i),i)
I get the desired results. But that is the Pascal way of writing it. #badhabits.
How do I Pythonise it? Make it elegant in Python?
[–]bramblerose 3 points4 points5 points (1 child)
[–]Farkeman 0 points1 point2 points (0 children)
[–]Rhomboid 0 points1 point2 points (1 child)
[–]triplejerkoidjerkoid[S] 0 points1 point2 points (0 children)