The program below checks whether a person can drink, based on their age and whether they have a license. The lines are out of order: arrange them into the correct nested if/else structure so the program prints the right message. The two variable assignments don’t depend on each other, so they come together as a single block.
age = 25
has_license = True
---
if age < 1000:
---
if age >= 21:
---
if has_license:
---
print("Can drink")
---
else:
---
print("Doesn't have a license")
---
else:
---
print("Too young")
---
else:
---
print("Too old")