You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`def dibujo(size=1, figura="cuadrado"):
"""Función que imprime figuras, dependiendo de su entrada"""
if figura == "cuadrado":
for i in range(size):
#Esta línea imprime el cuadrado
print("*" * size)
elif figura == "triangulo":
for i in range(1, size):
#Esta línea imprime cada fila del triángulo
print(" " * (size - i) + "*" * (2 * i - 1))
dibujo(10, "triangulo")
`
The text was updated successfully, but these errors were encountered:
`def dibujo(size=1, figura="cuadrado"):
"""Función que imprime figuras, dependiendo de su entrada"""
dibujo(10, "triangulo")
`
The text was updated successfully, but these errors were encountered: