Answers for "small game python code"

0

Small Python Game

# Random Number Generator
## Small Python Game
## You will win if you guess a number greater than the system generated number

import random

uNum = int(input("Enter a number between 0 and 100: "))
sNum = random.randint(0,100)

if uNum > sNum:
  print("You Win!!!")
else:
  print("Try Again!!!")

print("Your Number:", uNum, "nSystem Number:", sNum)
Posted by: Guest on December-31-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language