Python | Number Guessing Game | mini Project

Number Guessing Game in Python mini Project

This is mini project regarding missing number .Here user will enter any 3 – 4 digit number then invert that number  and then after inverted initial or inverted then subtract smaller number form bigger number then from output one number will be hidden so you have guess that number
 
Example
 
import random
gen_ran_no = random.randint(0,100)
print(gen_ran_no)
user_no = int(input('Enter Guessing number: '))
if user_no == gen_ran_no:
    print("YOU WIN THE GAME")
else:
    if user_no > gen_ran_no:    
        print('your number is greater')
    else:
        if user_no < gen_ran_no:
            print('you number is smaller')
note:its not a complete program

 

Leave a Comment

Your email address will not be published. Required fields are marked *