from vare import Vare from matbutikk import Matbutikk def hovedprogram(): matbutikk = Matbutikk() vare1 = Vare(100, "melk") vare2 = Vare(101, "brus") vare3 = Vare(102, "eple") matbutikk.legg_til(vare1) matbutikk.legg_til(vare2) matbutikk.legg_til(vare3) for vare in matbutikk.hent_varer(): print(f"{vare.hent_vareid()}, {vare.hent_varenavn()}") hovedprogram()