Well done!

You have completed Nested Decision Quiz!

Quiz Question 1 of 5

Given the following nested if-else structure, which modification could lead to logic errors when handling different game IDs and player counts?

if game == 1:
  if players < 2:
    print("Not enough players")
  elif players > 4:
    print("Too many players")
  else:
    print("Ready to start")
if game == 2:
  if players < 3:
    print("Not enough players")
  elif players > 6:
    print("Too many players")
  else:
    print("Ready to start")

Choose the correct answer below:

Skip Quiz Review Instruction