Number Guessing Game In Python

PHOTO EMBED

Wed Sep 18 2024 17:46:12 GMT+0000 (Coordinated Universal Time)

Saved by @freepythoncode ##python #coding #python #programming #game

import random

number = random.randint(1, 6)

guess = 0

while guess != number:
    guess = int(input('Number : '))
    if guess == number:
        print('You won ;)')
content_copyCOPY