def heie(tabellplass): if tabellplass["Brann"] <= 3: return "Brann" for lag in tabellplass: if tabellplass[lag] == 1: return lag tabell_eks ={"Rosenborg": 4, "Odd":1, "Molde": 3, "Brann": 2} tabell_2024 = {"Bod?/Glimt": 1, "Brann":2, "Molde": 3, "Viking":4, "Rosenborg":5} tabell_2023 = {"Molde":5,"TIL": 3, "Bod?/Glim1": 1, "Brann":2, "Viking":4, } tabell_2021 = {"Bod?/Glimt": 1, "Lillestr?m":2, "Molde": 2, "Viking":3, "Rosenborg":5, "Brann": 14} tabell_2019 = {"Molde":1,"Rosenborg": 3, "Bod?/Glim1": 2, "Odd":4, "Viking":5,"Brann":9 } print("2024: ", heie(tabell_2024)) print("2023: ", heie(tabell_2023)) print("2021: ", heie(tabell_2021)) print("2019: ", heie(tabell_2019))