PYTHON BEGINNER'S PROJECTS

All Beginner's Projects:


Project#1:

GUESS NUMBER GAME

import random

n = random.randint(1, 99)
print("Guess the numbne: ")
guess = int(input("Enter integer from 1 to 99"))
while n != "Guess":
    if guess < n:
        print("Your Guess is low")
        guess = int(input("enter the number between 1 to 99: "))
    elif guess > n:
        print("Your guess is high")
        guess = int(input("enter the number between 1 to 99: "))
    else:
        print("Congratulations! your guess is perfect")
        break

COPY AND ENJOY



BECOME A PYTHONISTA!






  
@T_i_m_o_t_h_i_o_u_s



BVB


Comments