def printHei(): print("hei") a = 5 #while-l?kke metoder: """b = 0 while b < a: printHei() b += 1""" #annen while-l?kke metode """while a: printHei() a -= 1 """ #for-l?kker: """ for i in range(a): print(f"i er n? {i}") printHei()""" for i in range(-5, 5): print(f"dette er i n?: {i}")