Alguien me puede echar una mano con este ejercicio.....solución sencilla con explicación en python?
-----------------------------
Write a procedure(sub) drawstars that will draw a sequence of spaces followed by a sequence of stars. It should accept two parameters - number of spaces and the number of stars.
EG.
Drawstars(3,5) would produce
_ _ _ ***** (_ indicates a space!)
Use your procedure to draw
Código:
Extension*** *** * *** ******* *** * * ** **
Now write a program using this procedure that will draw a pyramid whose base is a width specified by the user. EG
Enter base size of pyramid: 5
Código:
Assume the user has to enter an odd number * *** *****