Nov-07-2020, 06:44 PM
(Nov-07-2020, 06:28 PM)totoandreev Wrote:(Nov-07-2020, 06:21 PM)buran Wrote: Please, don't create multiple threads.https://pastebin.com/q8GeUj7x
We are glad to hello, but you need to show some effort. Post the code you have so far, if you get error - post the full traceback. Please, use proper tags when post code, traceback, output, etc.
See BBcode help for more info.
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 =That is what I have so far :)
Not sure if it is correct in any way shape or form. Just tried to do something but can't solve the problem
I just don't know how to continue solving it. It is a problem that I can't solve myself that's why I wanted to ask for someone's help. So they can solve it and I can look at the solution and understand it.