Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

make guessing game by python

from random import randint
num = int(input("Enter a number = "))
ran = randint(1, 10)
if num == ran:
    print("Winner!")
    print("You pressed - ", num, "and random number is - ", ran)
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #guessing #game #python
ADD COMMENT
Topic
Name
8+1 =