Created by: Numan Syed
Number Quest is a simple Python mini-game designed using only the concepts learned in class:
- Loops
- Ranges
- Lists
- Functions
- Conditionals (if/elif/else)
- Input/Output
- Random numbers
- Basic math
The project contains three mini-challenges:
- Guess The Number
- Range Challenge
- Even or Odd Detector
for i in range(n)while guess != secret
range(n + 1)
numbers = [random.randint(1, 20) for _ in range(5)]
def guess_the_number():def main():
if guess == secretelif num % 2 == 0
random.randint(1, 20)
input("Enter your guess: ")print()statements
time.sleep(0.1)
- Install Python 3
- Run the program: example.py