# Project 3 - Rock, Paper, Scissors game in Python

Project -3

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1719154395218/3b2b42be-1296-48f8-bfe8-bf684b8d0265.png align="center")

Link to see the code:

[https://youtu.be/uA7pUPsqBJU](https://youtu.be/uA7pUPsqBJU)

**<mark>Problems that I encountered</mark>**

1. How to make a random pick from computers side using random library
    
    ```python
    options = ["rock" , "paper" , "scissors"]
    #  0        1           2     
    
    solution:
    random_numbers  = random.randint(0,2)
    #rock : 0 , paper:1, scissors: 2     
    ```
    

**<mark>Functions that I have used</mark>**

1. random library: It is used to generate random numbers.
    
2. list: syntax: \["ele1","ele2","ele3"\]
    
3. if else condition
    
4. random.randint(start,end) function to generate random number in between the starting and ending number.
    
5. print() and input() functions
    

**<mark>What I learned</mark>**

1. How to use indexing to make choice for computers.
    
2. indexing of a list.
    
3. Use of 'elif' syntax instead of using the if else syntax.
