1. Who has not handed in homework?
Write code Easy ✓ CompletedComplete missing_homework(enrolled, submitted). Both arguments are lists of names, and they may contain repeats. Return a sorted list of the students who are enrolled but have not submitted. A name in submitted that is not enrolled must be ignored.
def missing_homework(enrolled, submitted):
# return a sorted list of enrolled students who did not submit
pass
print(missing_homework(["Asha", "Ben", "Cara", "Dev"], ["Ben", "Dev", "Eli"]))
def missing_homework(enrolled, submitted):
return sorted(set(enrolled) - set(submitted))
print(missing_homework(["Asha", "Ben", "Cara", "Dev"], ["Ben", "Dev", "Eli"]))