I am trying to programme a spin the bottle thing because I want to test myself and have got stuck : I want to create a spin the bottle game because I'm bored and what to test my coding skills (they're not that great ngl).  I got this far and wanted to add a feature where the programme asks how many people are playing and then it will change the output to that, for example it asks how many players and you respond with '8' it will then ask for 8 names and pick from those said names.

I have tried doing:
    players = input('How many people are playing?')

    if player == '2':
     name1 = input(Who is player 1?')
     name2 = input('Who is player 2?')

    elif player == '3'
     name1 = input(Who is player 1?')
     name2 = input('Who is player 2?')
     name3 = input ('Who is player 3?')

and so forth 

'''python
    import random
    import time
    print ('Hello and welcome to spin the bottle generator')
    name1 = input('Who is player 1?')
    name2 = input ('Who is player 2?')
    name3 = input('Who is player 3?')
    name4 = input ('Who is player 4?')


    names = [name1, name2, name3, name4]
    print (names)
    print ('Spinning')
    time.sleep(1)
    print (random.choice(names))
'''

I submitted this code and it asked for the number of players and when i input '4' as a test it didnt go any further :/