Short code in Python Rock Paper Scissors I am studying and practicing Python; this is my Rock-Paper-Scissors game I've built from scratch.
I saw this task is for beginners. When writing this in all the examples I saw dozens of lines of code with if elif else statements.
I decided to write the shortest program for this game.
I'm just looking for any comments, improvements or bad habits. Any comments at all are welcome!

import random

my_win = 0
my_loss = 0
my_tie = 0


def game():

    global my_tie, my_loss, my_win

    var = {'scissors':(0,1,0),
           'paper':(0,0,1),
           'rock':(1,0,0)}

    user = input(&quot;Please choice scissors, paper or rock: &quot;)
    while user not in ['scissors', 'paper', 'rock']:
            user = input(&quot;Please choice scissors, paper or rock: &quot;)
    computer = random.choice(['scissors','paper','rock'])

    print(f&quot;USER - {user} \nCOMPUTER - {computer}&quot;)

    for k, v in var.items():
        if k == user:
            one = int(v.index(1))
        if k == computer:
            two = int(v.index(1))

    if one &lt; two:
        print(f&quot;USER with {user} - WIN!&quot;)
        my_win += 1
    elif one == two:
        print(&quot;==TIE==&quot;)
        my_tie += 1
    else:
        print(f&quot;COMPUTER with {computer} - WIN!&quot;)
        my_loss += 1
    

    def results():

        print (&quot;You win %d times!&quot; % my_win)
        print (&quot;You lose %d times!&quot; % my_loss)
        print (&quot;You tie %d times!&quot; % my_tie)


if __name__ == &quot;__main__&quot;:
    game()
I'll just go over some small improvements I noticed you can make.
my_win = 0
my_loss = 0
my_tie = 0


def game():

    global my_tie, my_loss, my_win

Global variables should be avoided whenever possible. The only reason I can see that these are globals is because of results() but you never actually call results(). It's probably better to just leave these as local variables.
var = {'scissors':(0,1,0),
       'paper':(0,0,1),
       'rock':(1,0,0)}

for k, v in var.items():
    if k == user:
        one = int(v.index(1))
    if k == computer:
        two = int(v.index(1))

A couple of comments here. First, you don't make use of the fact that your values in your dictionary are tuples instead of just ints. You can just use 0, 1, and 2 as values. Second, you're not taking advantage of the thing that dictionaries are best at: indexing. An improvement here would be:
var = {'scissors':1,
       'paper':2,
       'rock':0}

one = var[user]
two = var[computer]

Next:
if one &lt; two:
    print(f&quot;USER with {user} - WIN!&quot;)
    my_win += 1
elif one == two:
    print(&quot;==TIE==&quot;)
    my_tie += 1
else:
    print(f&quot;COMPUTER with {computer} - WIN!&quot;)
    my_loss += 1

As I said in the comments, I don't think this is functionally correct. Either combination of the user and the computer choosing paper and rock will cause the rock to win. One of many fixes you could do is to add and abs(one - two) == 1 as a condition to your first if statement.
def results():

    print (&quot;You win %d times!&quot; % my_win)
    print (&quot;You lose %d times!&quot; % my_loss)
    print (&quot;You tie %d times!&quot; % my_tie)

This function is defined inside your game() function and is never called. Because your variables are local (as I suggested), you might want to put wins, losses, and ties as arguments for this function. You also don't have a way to play the game more than once, making this function pretty unhelpful. I'll leave adding a way to play multiple games to you since that's more of a code upgrade than a code review.
Here is the complete code with all my proposed changes:
import random

def game():
    my_win = 0
    my_loss = 0
    my_tie = 0

    var = {'scissors':1,
           'paper':2,
           'rock':0}

    user = input(&quot;Please choice scissors, paper or rock: &quot;)
    while user not in ['scissors', 'paper', 'rock']:
            user = input(&quot;Please choice scissors, paper or rock: &quot;)
    computer = random.choice(['scissors','paper','rock'])

    print(f&quot;USER - {user} \nCOMPUTER - {computer}&quot;)

    one = var[user]
    two = var[computer]

    if one &lt; two and abs(one - two) == 1:
        print(f&quot;USER with {user} - WIN!&quot;)
        my_win += 1
    elif one == two:
        print(&quot;==TIE==&quot;)
        my_tie += 1
    else:
        print(f&quot;COMPUTER with {computer} - WIN!&quot;)
        my_loss += 1
    
    results(my_win, my_loss, my_tie)

def results(win, loss, tie):

    print (&quot;You win %d times!&quot; % win)
    print (&quot;You lose %d times!&quot; % loss)
    print (&quot;You tie %d times!&quot; % tie)


if __name__ == &quot;__main__&quot;:
    game()