Matchresultaten

Log in om je oplossingen te testen.
m1t1 = int(input("Hoeveel goals scoorde team 1 in match 1?")) m1t2 = int(input("Hoeveel goals scoorde team 2 in match 1?")) m2t1 = int(input("Hoeveel goals scoorde team 1 in match 2?")) m2t2 = int(input("Hoeveel goals scoorde team 2 in match 2?")) m3t1 = int(input("Hoeveel goals scoorde team 1 in match 3?")) m3t2 = int(input("Hoeveel goals scoorde team 2 in match 3?")) m4t1 = int(input("Hoeveel goals scoorde team 1 in match 4?")) m4t2 = int(input("Hoeveel goals scoorde team 2 in match 4?")) m5t1 = int(input("Hoeveel goals scoorde team 1 in match 5?")) m5t2 = int(input("Hoeveel goals scoorde team 2 in match 5?")) m6t1 = int(input("Hoeveel goals scoorde team 1 in match 6?")) m6t2 = int(input("Hoeveel goals scoorde team 2 in match 6?")) m7t1 = int(input("Hoeveel goals scoorde team 1 in match 7?")) m7t2 = int(input("Hoeveel goals scoorde team 2 in match 7?")) m8t1 = int(input("Hoeveel goals scoorde team 1 in match 8?")) m8t2 = int(input("Hoeveel goals scoorde team 2 in match 8?")) m9t1 = int(input("Hoeveel goals scoorde team 1 in match 9?")) m9t2 = int(input("Hoeveel goals scoorde team 2 in match 9?")) if m1t1 > m1t2: print("In match 1 wint team 1.") elif m1t1 < m1t2: print("In match 1 wint team 2.") else: print("Match 1 was een gelijkspel.") if m2t1 > m2t2: print("In match 2 wint team 1.") elif m2t1 < m2t2: print("In match 2 wint team 2.") else: print("Match 2 was een gelijkspel.") if m3t1 > m3t2: print("In match 3 wint team 1.") elif m3t1 < m3t2: print("In match 3 wint team 2.") else: print("Match 3 was een gelijkspel.") if m4t1 > m4t2: print("In match 4 wint team 1.") elif m4t1 < m4t2: print("In match 4 wint team 2.") else: print("Match 4 was een gelijkspel.") if m5t1 > m5t2: print("In match 5 wint team 1.") elif m5t1 < m5t2: print("In match 5 wint team 2.") else: print("Match 5 was een gelijkspel.") if m6t1 > m6t2: print("In match 6 wint team 1.") elif m6t1 < m6t2: print("In match 6 wint team 2.") else: print("Match 6 was een gelijkspel.") if m7t1 > m7t2: print("In match 7 wint team 1.") elif m7t1 < m7t2: print("In match 7 wint team 2.") else: print("Match 7 was een gelijkspel.") if m8t1 > m8t2: print("In match 8 wint team 1.") elif m8t1 < m8t2: print("In match 8 wint team 2.") else: print("Match 8 was een gelijkspel.") if m9t1 > m9t2: print("In match 9 wint team 1.") elif m9t1 < m9t2: print("In match 9 wint team 2.") else: print("Match 9 was een gelijkspel.")
Je kunt zo vaak indienen als je wenst. Er wordt enkel rekening gehouden met je laatst ingediende oplossing.
Log in om je oplossingen te testen.

  Python sandbox

In dit venster kan je Python-code uitvoeren zonder iets te moeten installeren. De code die je hier schrijft wordt niet automatisch ingediend in Dodona.

Testgeval dat gedebugd wordt