Horje
Small Python Game Code Example
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)




Python

Related
keras conv2d batchnorm Code Example keras conv2d batchnorm Code Example
ip address finder script python Code Example ip address finder script python Code Example
random number generator python Code Example random number generator python Code Example
Random Number Generator Code Example Random Number Generator Code Example
indexing python first and last Code Example indexing python first and last Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7