Number Guessing Game Python | Python Random Number Guessing Game with source code | Hindi/Urdu 2020
Number Guessing Game Python | Python Random Number Guessing Game with source code | Hindi/Urdu 2020
Note : Recplace (greater than) and (less than) with their sign/symbol ( Because Youtube donot allow angle brackets in description ) OR You can get this code on github by using github link
Code github Link : https://github.com/ubaidahmadceh/python_projects/blob/main/Number_Guessing.py
code :
from random import randint
number = randint(1,11)
no_of_guess = 1
while True:
guess = int(input("Guess a number between 1 - 10 : "))
if guess == number:
print(f"you win this game in {no_of_guess} guess")
break
elif guess (greater than) number:
print("Too large guess")
elif guess (less than) number:
print("Too small guess")
else:
print("Please guess between 0 to 10")
no_of_guess = no_of_guess + 1
number guessing game python,guessing game python,random number guessing game,beginners games python,games in pythom,learn python,guess the number python code,guessing,absolute beginner python,complete beginner python,random number generation,guess the number python project,beginners python tutorials,how to make random number python,beginner python tutorial,python,number,introductory python project,python 3,beginner,basic coding project ideas,game,basic coding