from bok import Bok def hovedprogram(): b1 = Bok("Shogun", "James Clavell", 1975) b2 = Bok("Sapiens", "Noah Harari", 2010) b3 = Bok("Norwegian Wood", "Haruki Murakami", 1987) b4 = Bok("Bienes historie", "Maja Lunde", 2015) b5 = Bok("The Hobbit", "J.R.R Tolkien", 1937) b?ker = [b1,b2,b3,b4,b5] for bok in b?ker: if bok.hent_?r() < 2000: print(bok.hent_tittel()) hovedprogram()