SELECT PROJECT
๐ Project 1: Real-time Data App
PROJECT GOAL (เคเฅเคฏเคพ เคฌเคจเคพเคจเคพ เคนเฅ)
Create a Number Guessing Game in Python that takes numbers from a simulated list to play an
automated guessing game.
Requirements
1. Inside the game, use the random module to select a random integer between 1 and 100.
2. The game will accept a list (guesses_list) containing the user's predetermined guesses.
3. Run a for loop to check each guess in the list and track the total number of attempts (attempts += 1).
4. Validation Logic :
Requirements
1. Inside the game, use the random module to select a random integer between 1 and 100.
2. The game will accept a list (guesses_list) containing the user's predetermined guesses.
3. Run a for loop to check each guess in the list and track the total number of attempts (attempts += 1).
4. Validation Logic :
1. If the guess is too low, print: โ Too Low! Try a larger number.
2. If the guess is too high, print: โ Too High! Try a smaller number.
3. If the guess is correct, print a congratulations message showing total attempts, and use
the return keyword to exit the loop and the game immediately.
CHECKLIST
main.py
OUTPUT
โถ Pyodide Console v0.26.0 Ready...
โถ Click the 'Run' button above to execute your Python code.
โถ Your program output or errors will appear here.
โถ Click the 'Run' button above to execute your Python code.
โถ Your program output or errors will appear here.