Skip to content

Commit

Permalink
Reto mouredev#16 - Python
Browse files Browse the repository at this point in the history
  • Loading branch information
gelovic committed Apr 17, 2023
1 parent e20b481 commit e03fbf3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Retos/Reto #16 - LA ESCALERA [Media]/python/gelovic.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
def dibuja_escalones(n: int):
if n > 0:
print(' '*n+'_')
for i in range(n):
print(' '*(n-i-1)+'_|')
elif n < 0:
print('_')
for i in range(abs(n)):
print(' '*(i)+' |_')
else:
print('__')

dibuja_escalones(-4)

0 comments on commit e03fbf3

Please sign in to comment.