Python Number Guessing Game Project

🚀Python project #1 : Number Guessing Game Today I built a beginner-level project using Python as part of my journey to learn programming more deeply.. -concepts used : loops conditional statements random module #program import random number=random.randint(1, 40) guess=0 attempts=0 print('welcome to the number guessing game') print('guess the number between the range') while guess!=number: guess=int(input('enter your guess')) attempts+=1 if guess<number: print('your guess is lower than number') elif guess>number: print('your guess is greater than number') else: print('congrats🎉,your guess is right') print('total attempts',attempts) #pythonprojects #numberguessinggame #learning #projects #pythonjourney

To view or add a comment, sign in

Explore content categories