Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- friend_names = input().split(", ")
- command = input().split()
- lost_names = 0
- def in_blacklist(blacklist, names_is):
- return True if names_is in blacklist else False
- def in_friendlist(friendlist, name_is1):
- return True if name_is1 in friendlist else False
- while not command == "Report":
- command_type = command[0]
- name = command[1]
- if command_type == "Blacklist":
- while not command[1]=="":
- if in_blacklist(friend_names,name):
- print(f"{name} was blacklisted")
- elif not in_friendlist(friend_names, name):
- print(f"{name} was not found.")
- if command_type == "Error":
- if name is not in_blacklist(friend_names,name):
- print(f"{name} was lost due to an error.")
- if command_type == "Change":
- index = friend_names[0]
- if index =
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement