Code:
i = 0
string = "hallo"
while i != 10:
for letter in string:
print(letter, end="")
i += 1
Der output von diesem code ist:
hallohallohallohallohallohallohallohallohallohallo
Wie schaffe ich es das der output so ist:
hallo
hallo
hallo
hallo
...
Alles was ich probiert hab, kam der output nur Buchstabe für Buchstabe oder als fließ Text wie oben. Wie schaff ich es den output als zeilenumbruch zu haben?