# Skriva till fil with open("data.txt", "w", encoding="utf-8") as fil: fil.write("Rad 1\n") fil.write("Rad 2\n")
Lazy programmers are the best programmers. If you have to write the same line of code three times, you are doing it wrong. Use loops. programmering 1 med python pdf exclusive
print(area_rectangle(5, 3)) # 15 print(area_rectangle(5)) # 5 (höjd=1) # Skriva till fil with open("data
Programmering är ett hantverk. Att läsa om en loop i en PDF ger dig inte muskelminnet; du måste skriva den själv i en editor (t.ex. VS Code, IDLE eller Thonny). # Skriva till fil with open("data.txt"