while true, check if name in names :     amount_of_names = int(input("Input amount of players: "))
    names = []

    for counter in range(amount_of_names):
      name = str(input("Input players first name: "))
      names.append(name)
    #print (names)
    selected_name = str(input("Input your name: "))
    import random 
    names = random.choice(names)
    while True:
      name in names 
      import random 
      names = random.choice(names)
      break
    print (names)

I would like the "while true" statement to run until "name" and "names" do not match, if the name does not match, then print the non-matching name. Atm I only get a letter as an output or a syntax error whilst trying to get this working,   effectively unable to be matched with their name if it is already in the list - if anyone can help it would be much appreciated 
    