'F' → Fullscreen
Create a new Python program named 1-22-checking-membership.
in.roster = ["avery", "blake", "carter", "drew", "elliot"]
name = input("Enter a name: ").lower()
if name in roster: print(f"{name} is on the roster.")else: print(f"{name} is not on the roster.").index().roster = ["avery", "blake", "carter", "drew", "elliot"]
name = input("Enter a name: ").lower()
if name in roster: position = roster.index(name) print(f"{name} is on the roster at position {position}.")else: print(f"{name} is not on the roster.")"done", checking each name against the roster and counting how many were found.roster = ["avery", "blake", "carter", "drew", "elliot"]
name = ""present_count = 0
while name != "done": name = input("Enter a name (or 'done' to finish): ").lower()
if name == "done": print(f"Checked in {present_count} students.") elif name in roster: position = roster.index(name) print(f"{name} is on the roster at position {position}.") present_count = present_count + 1 else: print(f"{name} is not on the roster.")Verify your program works correctly.
Enter a name (or 'done' to finish): blake [Enter]blake is on the roster at position 1.Enter a name (or 'done' to finish): morgan [Enter]morgan is not on the roster.Enter a name (or 'done' to finish): elliot [Enter]elliot is on the roster at position 4.Enter a name (or 'done' to finish): done [Enter]Checked in 2 students.Answer the following questions before submitting your work.
in operator return, and what data type is that?in before calling .index()?in operator with the accumulator pattern from Activity 1.21?Submit the required files to the appropriate dropbox.