def printRectangle(width, height): for i in range(height): print(width * "*") # Beispielaufruf: printRectangle(7, 3)