# -*- coding: utf-8 -*-
"""
Created on Thu Nov 26 17:49:38 2020
@author: admin
"""
import random
n = 30;
to_be_guessed = int(n*random.random())+1
guess = 0
while guess != to_be_guessed:
guess = int(input("New Number: "))
if guess > 0:
if guess > to_be_guessed:
print("Its large...")
elif guess < to_be_guessed:
print("Its small...")
else:
print("Oops, we lost...")
else:
print("Congrads..You made it...")
***********************************************************
No comments:
Post a Comment