dimanche 29 septembre 2019

How to fix print is not working in python with the random lib [duplicate]

This question already has an answer here:

I am creating a rock, paper, scissor game i just try the random lib but this what happens

C:\Users\Timothy\Desktop>python app1.py
2
Please choose 1=Rock, 2=Paper, 3=Siccors2

and this is the code that I create

import random
ai = (random.randint(1,3))
print(ai)
play = input("Please choose 1=Rock, 2=Paper, 3=Siccors")
if ai == play:
    print("Hello")



Aucun commentaire:

Enregistrer un commentaire