Rock, Paper, Scissors game made in python I added Rock, Paper, Scissors to one of my programs. I'm new to python and PEP 8, so I want to see how to improve my work.

def rock_paper_scissors(name):
    play_rps = True
    while play_rps:
        rps = ["rock", 'paper', 'scissors']
        player_rps = input("Rock, Paper, or Scissors: ").lower()
        com_rps = rps[random.randint(0,3)]
        print(com_rps)

        if com_rps == player_rps:
            print('Tie')

        if com_rps == 'rock' and player_rps == "scissors":
            print("Chatter Bot Wins!")

        if com_rps == 'scissors' and player_rps == "paper":
            print("Chatter Bot Wins!")

        if com_rps == 'paper' and player_rps == "rock":
            print("Chatter Bot Wins!")

        if player_rps == 'rock' and com_rps == "scissors":
            print(f"{name} Wins!")

        if player_rps == 'sicssors' and com_rps == "paper":
            print(f"{name} Wins!")

        if player_rps == 'paper' and com_rps == "rock":
            print(f"{name} Wins!")

        yn = input("Do you want to play again. Y/N: ").lower()

        if yn == 'n' or yn == 'no':
            play_rps = False
Move more of your code out of the function. Make a find_winner function.
You don't need to add _rps to the end of every variable name. It only makes it harder to read the code.
PEP 8 doesn't say which string delimiter to use, but says to stick to one. I use ', you may prefer ".
You can use random.choice rather than random.randint to select from a list.
There is a bug in your code. I suggest you keep using string literals to a minimum to prevent this.


player_rps == 'sicssors' and com_rps == "paper"


You can simplify your yn check by using in.


This in all got me:

WIN_VALUES = {
    'rock': 'scissors',
    'paper': 'rock',
    'scissors': 'paper'
}


def find_winner(choice1, choice2):
    if choice1 == choice2:
        return 0
    if WIN_VALUES[choice1] == choice2:
        return 1
    if WIN_VALUES[choice2] == choice1:
        return 2


def rock_paper_scissors(name):
    play = True
    while play:
        player = input('Rock, Paper, or Scissors: ').lower()
        com = random.choice(list(WIN_VALUES))
        print(com)

        winner = find_winner(com, player)
        if winner == 0:
            print('Tie')
        elif winner == 1:
            print('Chatter Bot Wins!')
        elif winner == 2:
            print(f'{name} Wins!')
        else:
            print(f'Invalid input {player}')

        yn = input('Do you want to play again. Y/N: ').lower()
        if yn in ('n', 'no'):
            play = False