for i in range(5): print(i) tall = int(input("Hvor mange ganger skal jeg skrive hei?\n> ")) for i in range(tall): print("hei")