Skip to content

Instantly share code, notes, and snippets.

View OxMrivic's full-sized avatar
💭
I may be slow to respond.

OxMrivic OxMrivic

💭
I may be slow to respond.
View GitHub Profile
@OxMrivic
OxMrivic / Python3
Created May 12, 2025 23:19
Python3 Easy Guessing Game :)
import random
def guess_number():
number_to_guess = random.randint(1, 100)
attempts = 0
print("Welcome to Guess the Number! I am thinking of a number between 1 and 100.")
while True:
try:
guess = int(input("Enter your guess: "))
attempts += 1