๐Ÿ‡ฐ๐Ÿ‡ท ํ•œ๊ตญ์–ด ๐Ÿ‡บ๐Ÿ‡ธ English
0 / 9 done
๐Ÿ

Learn Python!

Python coding for kids โ€” fun, easy, and step by step!
Let's make games and apps together!

๐Ÿ“š
9Chapters
๐ŸŽฏ
18Quizzes
๐ŸŽฎ
4Mini Projects
โญ
0Completed
๐Ÿ“– Chapters
๐Ÿ
Chapter 1

What is Python?

Meet the special language that talks to computers!

๐ŸŒŸ After this chapter โ€” you can write your very first Python program and watch it run!

๐Ÿค” What is Python?

Python is a programming language โ€” a way to give instructions to a computer!

Just like we use English to talk to each other, we use Python to tell computers what to do. And Python is one of the easiest languages to learn!

๐ŸŽ‰ Cool Fact! Python was NOT named after the snake! It was named after a funny TV show called "Monty Python's Flying Circus". That's why the Python logo has two snakes! ๐Ÿ๐Ÿ

๐Ÿš€ What Can You Make with Python?

CategoryExamples
๐ŸŽฎ GamesMinecraft servers, puzzle games
๐Ÿค– Artificial IntelligenceChatGPT, image recognition
๐ŸŒ WebsitesInstagram, YouTube, Netflix
๐Ÿ“Š Data AnalysisCharts, number crunching
๐Ÿค– RobotsDrones, self-driving cars
๐ŸŽฌ MoviesVisual effects (VFX)
๐Ÿ’ก Did You Know? Instagram, YouTube, Netflix, Spotify, and Dropbox were all built using Python!

๐Ÿ‘ Why Python is Great for Beginners

  • It reads almost like plain English โ€” easy to understand!
  • Less code needed compared to other languages
  • One of the most popular languages in the world
  • Completely free to use
  • Tons of tutorials and helpful resources online

๐Ÿ’ป Where Can You Use Python?

Try Python right now โ€” no installation needed!

๐ŸŒ Recommended Sites (Use in your browser!)
โ€ข replit.com โ€” Code Python right in your browser!
โ€ข python.org โ€” Official Python website (download)
โ€ข colab.research.google.com โ€” Google's Python environment
๐Ÿ“Œ About This Site The code on this site is for learning โ€” copy it to replit.com to actually run it!

๐ŸŽฏ Test Your Knowledge!

Q1. What is Python?

Q2. Where does the name "Python" come from?

๐Ÿ“บ
Chapter 2

Printing to the Screen

Use print() to show text and numbers!

๐ŸŒŸ After this chapter โ€” you can make the screen display any message you want!

๐Ÿ“ข What is print()?

print() is a command that displays text or numbers on the screen.

It's the very first thing every Python programmer learns! ๐ŸŒŸ

๐Ÿ python
print("Hello, World!")
โ–ถ OutputHello, World!
๐ŸŒ Hello, World! Every programmer in the world starts by printing "Hello, World!" โ€” it's a tradition! Now you're a programmer too! ๐ŸŽ‰

โœจ Printing Different Things

You can print text, numbers, and more!

๐Ÿ python
print("Hello!")        # print text
print(123)             # print a number
print(3.14)            # print a decimal
print(True)            # print True or False
โ–ถ OutputHello! 123 3.14 True
๐Ÿ’ก What is a Comment? Lines starting with # are comments. Python ignores them โ€” use them to write notes!

๐Ÿ–Š๏ธ Printing Multiple Things

๐Ÿ python
print("My name is", "Alex", "!")
print("I am", 10, "years old")
โ–ถ OutputMy name is Alex ! I am 10 years old

โš™๏ธ Special print() Options

Use sep to change the separator and end to change the line ending!

๐Ÿ python
# sep: change what goes between values (default: space)
print("apple", "banana", "grape", sep=" / ")

# end: change what goes at the end (default: newline)
print("Hello", end="! ")
print("I am Python!")
โ–ถ Outputapple / banana / grape Hello! I am Python!

๐ŸŽจ f-strings: Smart Printing

Put f before a string to insert variables inside {}!

๐Ÿ python
name = "Alex"
age = 11
print(f"Hi! My name is {name} and I am {age} years old!")
โ–ถ OutputHi! My name is Alex and I am 11 years old!

๐ŸŽฏ Test Your Knowledge!

Q1. What does print("Python") display?

Q2. What does the # symbol mean in Python?

๐Ÿ“ฆ
Chapter 3

Variables

Store and retrieve information with named boxes!

๐ŸŒŸ After this chapter โ€” you can store names, scores, and ages and use them in your programs!

๐Ÿ“ฆ What is a Variable?

A variable is like a labeled box that stores information!

Give the box a name, put something inside, and you can take it out and use it later.

๐Ÿ“ฆ Box Analogy
โ€ข name = "Alex" โ†’ store "Alex" in a box called "name"
โ€ข age = 10 โ†’ store the number 10 in a box called "age"
โ€ข score = 95.5 โ†’ store 95.5 in a box called "score"

โœ๏ธ Creating Variables

Use = to create a variable. Left side is the name, right side is the value!

๐Ÿ python
name = "Alex"          # store a name
age = 10               # store age
height = 140.5         # store height
is_student = True      # store True or False

print(name)
print(age)
print(height)
print(is_student)
โ–ถ OutputAlex 10 140.5 True

๐Ÿท๏ธ Data Types

Variables can store different types of data!

TypeNameExampleDescription
strString"Hello", "Alex"Text / words
intInteger10, -5, 100Whole numbers
floatFloat3.14, 1.5Decimal numbers
boolBooleanTrue, FalseTrue or False only
๐Ÿ python
# Check the type with type()
print(type("Hello"))   # <class 'str'>
print(type(10))        # <class 'int'>
print(type(3.14))      # <class 'float'>
print(type(True))      # <class 'bool'>
โ–ถ Output<class 'str'> <class 'int'> <class 'float'> <class 'bool'>

๐Ÿ“ Variable Naming Rules

โœ… OKโŒ Not OK
name, age, my_score1name (can't start with a number)
score1, total_countmy-score (no hyphens!)
isStudent, bestScoreclass, if (reserved keywords!)
๐Ÿ’ก Naming Tip! Use lowercase letters and connect multiple words with an underscore (_).
Examples: my_name, best_score, total_count

๐Ÿ”„ Changing a Variable's Value

๐Ÿ python
score = 0
print("Start:", score)      # 0

score = 100
print("After:", score)      # 100

score = score + 10          # add 10 to current value
print("Final:", score)      # 110
โ–ถ OutputStart: 0 After: 100 Final: 110

๐ŸŽฏ Test Your Knowledge!

Q1. Which of these is a valid variable name?

Q2. In age = 10, what data type is 10?

๐Ÿ”ข
Chapter 4

Numbers & Math

Let's build a calculator with Python!

๐ŸŒŸ After this chapter โ€” you can build a calculator that does math for you automatically!

โž• Math Operators in Python

SymbolMeaningExampleResult
+Addition5 + 38
-Subtraction10 - 46
*Multiplication3 * 412
/Division10 / 42.5
//Floor Division10 // 33
%Remainder (Modulo)10 % 31
**Power (Exponent)2 ** 101024

๐Ÿงฎ Math Examples

๐Ÿ python
print(5 + 3)    # 8
print(10 - 4)   # 6
print(3 * 4)    # 12
print(10 / 4)   # 2.5
print(10 // 3)  # 3  (drops the decimal)
print(10 % 3)   # 1  (remainder of 10 รท 3)
print(2 ** 10)  # 1024 (2 to the power of 10)
โ–ถ Output8 6 12 2.5 3 1 1024

๐Ÿ›’ Using Variables in Math

๐Ÿ python
price = 2       # price of one candy (dollars)
count = 5       # number of candies
total = price * count

print("Total:", total, "dollars")
print(f"Buying {count} candies costs ${total}!")
โ–ถ OutputTotal: 10 dollars Buying 5 candies costs $10!

โŒจ๏ธ Getting Input from the User

Use input() to ask the user to type something!

๐Ÿ python
name = input("What is your name? ")
print("Hello,", name, "!")

# Getting a number
num1 = int(input("First number: "))
num2 = int(input("Second number: "))
print("Sum:", num1 + num2)
โš ๏ธ Important! Numbers from input() are stored as text (strings)! Wrap them with int() or float() before doing math.

๐Ÿ”„ Type Conversion

๐Ÿ python
str(10)         # number โ†’ string: "10"
int("123")      # string โ†’ integer: 123
float("3.14")   # string โ†’ decimal: 3.14
int(3.7)        # decimal โ†’ integer: 3 (decimal dropped!)

๐ŸŽฏ Test Your Knowledge!

Q1. What is the result of 10 % 3?

Q2. What is the result of 2 ** 3?

โ“
Chapter 5

Conditionals โ€” if / else

Make decisions based on different situations!

๐ŸŒŸ After this chapter โ€” you can write smart programs that react differently to different situations!

๐Ÿ” Comparison Operators

These compare two values and give back True or False!

SymbolMeaningExampleResult
==Equal to5 == 5True
!=Not equal to5 != 3True
>Greater than7 > 5True
<Less than3 < 5True
>=Greater or equal5 >= 5True
<=Less or equal3 <= 5True

โ˜๏ธ The if Statement

Code inside if only runs when the condition is True!

๐Ÿ python
temperature = 95   # degrees Fahrenheit

if temperature > 85:
    print("It's really hot outside! โ˜€๏ธ")
    print("Stay hydrated!")
โ–ถ OutputIt's really hot outside! โ˜€๏ธ Stay hydrated!
๐Ÿ’ก Indentation Matters! Lines inside an if block must be indented with 4 spaces. Python uses indentation to know which lines belong together!

โ†”๏ธ if-else

๐Ÿ python
money = 3   # dollars

if money >= 5:
    print("You can buy the toy! ๐Ÿงธ")
else:
    print("Not enough money. You need $2 more. ๐Ÿ˜ข")
โ–ถ OutputNot enough money. You need $2 more. ๐Ÿ˜ข

๐Ÿ“Š if-elif-else

Check multiple conditions in order!

๐Ÿ python
score = 85

if score >= 90:
    print("Grade A! Amazing! โญโญโญ")
elif score >= 80:
    print("Grade B! Great job! โญโญ")
elif score >= 70:
    print("Grade C! Keep it up! โญ")
else:
    print("Keep studying! You can do it! ๐Ÿ’ช")
โ–ถ OutputGrade B! Great job! โญโญ

๐Ÿ”— and, or, not

๐Ÿ python
age = 12
height = 55   # inches

# and: BOTH must be True
if age >= 10 and height >= 54:
    print("You can ride! ๐ŸŽข")

# or: AT LEAST ONE must be True
if age >= 15 or height >= 54:
    print("One condition is met!")

# not: flips True to False (and False to True)
is_raining = False
if not is_raining:
    print("No umbrella needed! โ˜€๏ธ")
โ–ถ OutputYou can ride! ๐ŸŽข One condition is met! No umbrella needed! โ˜€๏ธ

๐ŸŽฏ Test Your Knowledge!

Q1. What is the result of 5 == 5?

Q2. If score = 95, what does this print?
if score >= 90: print("A")
else: print("B")

๐Ÿ”„
Chapter 6

Loops โ€” for / while

Repeat things automatically โ€” no copy-pasting!

๐ŸŒŸ After this chapter โ€” you can do 100 repetitive steps with just 3 lines of code!

๐Ÿค” Why Do We Need Loops?

Want to print "Hello!" 100 times? Without loops you'd write print("Hello!") 100 times!

๐Ÿ˜ฐ Without a loop (the hard way) print("Hello!") # 1st time
print("Hello!") # 2nd time
print("Hello!") # 3rd time
... write 100 lines ...
๐Ÿ˜Ž With a loop (the smart way) for i in range(100):
    print("Hello!") # just 2 lines!

๐Ÿ” for Loop

๐Ÿ python
for i in range(5):
    print(i, "- Hello!")
โ–ถ Output0 - Hello! 1 - Hello! 2 - Hello! 3 - Hello! 4 - Hello!

๐Ÿ“ The range() Function

CodeNumbers
range(5)0, 1, 2, 3, 4
range(1, 6)1, 2, 3, 4, 5
range(0, 10, 2)0, 2, 4, 6, 8 (step by 2)
range(5, 0, -1)5, 4, 3, 2, 1 (count down!)
๐Ÿ python
# Times tables: 3's
for i in range(1, 10):
    print(f"3 ร— {i} = {3 * i}")
โ–ถ Output3 ร— 1 = 3 3 ร— 2 = 6 3 ร— 3 = 9 3 ร— 4 = 12 3 ร— 5 = 15 3 ร— 6 = 18 3 ร— 7 = 21 3 ร— 8 = 24 3 ร— 9 = 27

๐Ÿ”ƒ while Loop

Keeps repeating as long as the condition is True!

๐Ÿ python
count = 1
while count <= 5:
    print(count, "- Go!")
    count += 1     # same as: count = count + 1
โ–ถ Output1 - Go! 2 - Go! 3 - Go! 4 - Go! 5 - Go!
โš ๏ธ Infinite Loop Alert! If the while condition never becomes False, the loop runs forever! Always make sure the condition changes (like count += 1).

โน๏ธ break and continue

๐Ÿ python
# break: exit the loop immediately
for i in range(10):
    if i == 5:
        break       # stop at 5!
    print(i, end=" ")
# Output: 0 1 2 3 4

print()  # new line

# continue: skip this round, move to next
for i in range(10):
    if i % 2 == 0:
        continue    # skip even numbers
    print(i, end=" ")
# Output: 1 3 5 7 9
โ–ถ Output0 1 2 3 4 1 3 5 7 9

๐ŸŽฏ Test Your Knowledge!

Q1. What numbers does range(1, 5) include?

Q2. What does for i in range(3): print(i) output?

๐ŸŽฏ
Chapter 7

Creating Functions

Build your own custom commands!

๐ŸŒŸ After this chapter โ€” you can create your own custom commands to reuse anytime!

๐Ÿค” What is a Function?

A function is a named block of code that does a specific job!

The print() we've been using? That's a function Python built for us. Now let's make our own!

๐Ÿณ Recipe Analogy! A function is like a cooking recipe:
โ€ข Recipe name = function name
โ€ข Ingredients = parameters
โ€ข Finished dish = return value

โœ๏ธ Creating a Function (def)

๐Ÿ python
# Define the function
def greet():
    print("Hello! ๐Ÿ‘‹")
    print("Welcome to the Python world!")

# Call (use) the function
greet()
greet()   # call it again!
โ–ถ OutputHello! ๐Ÿ‘‹ Welcome to the Python world! Hello! ๐Ÿ‘‹ Welcome to the Python world!

๐Ÿ“ฌ Functions with Parameters

Pass values into your function!

๐Ÿ python
def greet(name):
    print(f"Hello, {name}! Nice to meet you! ๐Ÿ˜Š")

greet("Alex")
greet("Emma")
greet("Liam")
โ–ถ OutputHello, Alex! Nice to meet you! ๐Ÿ˜Š Hello, Emma! Nice to meet you! ๐Ÿ˜Š Hello, Liam! Nice to meet you! ๐Ÿ˜Š

โ†ฉ๏ธ Returning a Value

๐Ÿ python
def add(a, b):
    result = a + b
    return result      # send the answer back!

answer = add(5, 3)     # store the returned value
print(answer)          # 8

print(add(10, 20))     # 30
print(add(100, 200))   # 300
โ–ถ Output8 30 300

๐Ÿ“ฆ Multiple Parameters

๐Ÿ python
def introduce(name, age, hobby):
    print(f"Name:  {name}")
    print(f"Age:   {age}")
    print(f"Hobby: {hobby}")
    print("---")

introduce("Alex",  11, "Soccer โšฝ")
introduce("Emma",  10, "Drawing ๐ŸŽจ")
โ–ถ OutputName: Alex Age: 11 Hobby: Soccer โšฝ --- Name: Emma Age: 10 Hobby: Drawing ๐ŸŽจ ---

๐Ÿ› ๏ธ Useful Built-in Functions

๐Ÿ python
numbers = [5, 2, 8, 1, 9, 3]

print(len(numbers))    # 6    (count)
print(max(numbers))    # 9    (largest)
print(min(numbers))    # 1    (smallest)
print(sum(numbers))    # 28   (total)

print(abs(-10))        # 10   (absolute value)
print(round(3.7))      # 4    (rounded)
โ–ถ Output6 9 1 28 10 4

๐ŸŽฏ Test Your Knowledge!

Q1. What keyword do you use to create a function?

Q2. What does add(3, 4) return?
def add(a, b): return a + b

๐Ÿ“
Chapter 8

Lists

Store multiple values in one place!

๐ŸŒŸ After this chapter โ€” you can manage lists of names, scores, or anything โ€” all in one place!

๐Ÿ“‹ What is a List?

A list is like a big box with numbered slots โ€” it holds many values in order!

๐Ÿ python
fruits  = ["apple", "banana", "strawberry", "grape"]
scores  = [90, 85, 78, 92, 88]
mixed   = ["Alex", 11, True, 3.14]   # different types OK!

print(fruits)
print(scores)
โ–ถ Output['apple', 'banana', 'strawberry', 'grape'] [90, 85, 78, 92, 88]

๐Ÿ”ข Accessing Items by Index

Each item has a number called an index. Counting starts at 0!

๐Ÿ python
fruits = ["apple", "banana", "strawberry", "grape"]
#  index:     0         1           2          3

print(fruits[0])    # apple      (first)
print(fruits[1])    # banana     (second)
print(fruits[-1])   # grape      (last)
print(fruits[-2])   # strawberry (second from last)
โ–ถ Outputapple banana grape strawberry
๐Ÿ’ก Index starts at 0! First item = [0], second = [1], third = [2] ...
Python always counts from 0, not 1!

๐Ÿ› ๏ธ Modifying a List

๐Ÿ python
fruits = ["apple", "banana"]

fruits.append("strawberry")       # add to end
print(fruits)   # ['apple', 'banana', 'strawberry']

fruits.insert(1, "grape")         # insert at index 1
print(fruits)   # ['apple', 'grape', 'banana', 'strawberry']

fruits.remove("banana")           # remove by value
print(fruits)   # ['apple', 'grape', 'strawberry']

print(len(fruits))                # 3 (count items)
fruits.sort()                     # sort alphabetically
print(fruits)   # ['apple', 'grape', 'strawberry']
โ–ถ Output['apple', 'banana', 'strawberry'] ['apple', 'grape', 'banana', 'strawberry'] ['apple', 'grape', 'strawberry'] 3 ['apple', 'grape', 'strawberry']

๐Ÿ” Loops with Lists

๐Ÿ python
fruits = ["apple", "banana", "strawberry", "grape"]

for fruit in fruits:
    print(fruit, "is yummy! ๐Ÿ˜‹")

# With index numbers
for i, fruit in enumerate(fruits):
    print(f"{i+1}. {fruit}")
โ–ถ Outputapple is yummy! ๐Ÿ˜‹ banana is yummy! ๐Ÿ˜‹ strawberry is yummy! ๐Ÿ˜‹ grape is yummy! ๐Ÿ˜‹ 1. apple 2. banana 3. strawberry 4. grape

โž• Combining Lists

๐Ÿ python
list1 = [1, 2, 3]
list2 = [4, 5, 6]

combined = list1 + list2
print(combined)   # [1, 2, 3, 4, 5, 6]

zeros = [0] * 5
print(zeros)      # [0, 0, 0, 0, 0]
โ–ถ Output[1, 2, 3, 4, 5, 6] [0, 0, 0, 0, 0]

๐ŸŽฏ Test Your Knowledge!

Q1. In fruits = ["apple", "banana", "cherry"], what is fruits[1]?

Q2. Which method adds a new item to the END of a list?

๐ŸŽฎ
Chapter 9

Mini Projects

Use everything you've learned to build cool programs!

๐ŸŒŸ After this chapter โ€” you'll have real working programs: star patterns, a guessing game, rock-paper-scissors, and more!

โญ Star Triangle

Draw a triangle using loops!

๐Ÿ python
size = 5
for i in range(1, size + 1):
    print("โญ" * i)
โ–ถ Outputโญ โญโญ โญโญโญ โญโญโญโญ โญโญโญโญโญ

๐Ÿ’ช Challenge!

  1. Make an upside-down triangle! (try range(size, 0, -1))
  2. Make a diamond shape by combining both!

๐Ÿ”ข Times Table Generator

๐Ÿ python
number = int(input("Which times table? "))

print(f"\n{'='*15}")
print(f"  {number} Times Table")
print(f"{'='*15}")
for i in range(1, 10):
    print(f"  {number} ร— {i:1} = {number * i:2}")
โ–ถ Output (input: 7)=============== 7 Times Table =============== 7 ร— 1 = 7 7 ร— 2 = 14 7 ร— 3 = 21 7 ร— 4 = 28 7 ร— 5 = 35 7 ร— 6 = 42 7 ร— 7 = 49 7 ร— 8 = 56 7 ร— 9 = 63

๐ŸŽฒ Number Guessing Game

Use the random module to create a random number!

๐Ÿ python
import random    # load the random module

secret = random.randint(1, 10)   # random number 1โ€“10
attempts = 0

print("๐ŸŽฎ Number Guessing Game!")
print("I'm thinking of a number between 1 and 10!\n")

while True:
    guess = int(input("Your guess: "))
    attempts += 1

    if guess < secret:
        print("Too low! โฌ†๏ธ")
    elif guess > secret:
        print("Too high! โฌ‡๏ธ")
    else:
        print(f"\n๐ŸŽ‰ Correct! You got it in {attempts} tries!")
break
๐Ÿ’ก What is import? Python has built-in toolboxes called modules. Use import to load them!
random.randint(1, 10) โ†’ gives a random number between 1 and 10

๐Ÿ“Š Grade Calculator

๐Ÿ python
subjects = ["Math", "English", "Science", "History", "Art"]
scores = []

print("=== ๐Ÿ“Š Grade Calculator ===\n")
for subject in subjects:
    score = int(input(f"{subject} score: "))
    scores.append(score)

total   = sum(scores)
average = total / len(scores)

print(f"\n{'='*20}")
print(f"Total:   {total} pts")
print(f"Average: {average:.1f} pts")
print(f"{'='*20}")

if average >= 90:
    print("๐Ÿ† Outstanding! Amazing work!")
elif average >= 80:
    print("๐Ÿ‘ Great job! Keep it up!")
elif average >= 70:
    print("๐Ÿ“š Good effort! Keep studying!")
else:
    print("๐Ÿ’ช Don't give up! You can do it!")

๐Ÿงฎ Simple Calculator

๐Ÿ python
def calculator(a, op, b):
    if op == "+":
        return a + b
    elif op == "-":
        return a - b
    elif op == "*":
        return a * b
    elif op == "/":
        if b == 0:
            return "Can't divide by zero!"
        return a / b
    else:
        return "Unknown operator!"

# Test it!
print(calculator(10, "+", 5))   # 15
print(calculator(10, "-", 3))   # 7
print(calculator(4,  "*", 6))   # 24
print(calculator(15, "/", 3))   # 5.0
print(calculator(10, "/", 0))   # Can't divide by zero!
โ–ถ Output15 7 24 5.0 Can't divide by zero!

๐Ÿชจ Rock Paper Scissors

Play against the computer! First to win 3 rounds wins the game!

๐Ÿ python
import random

choices = ["Rock", "Paper", "Scissors"]
win_count = 0
lose_count = 0
draw_count = 0

print("๐ŸŽฎ Rock Paper Scissors!")
print("First to win 3 rounds wins!\n")

while True:
    print("1:Rock  2:Paper  3:Scissors  0:Quit")
    user_input = int(input("Your choice: "))

    if user_input == 0:
        print("Game over!")
        break

    if user_input not in [1, 2, 3]:
        print("Please choose 1, 2, or 3!\n")
        continue

    user     = choices[user_input - 1]
    computer = random.choice(choices)

    print(f"\n๐Ÿ™‹ You:      {user}")
    print(f"๐Ÿค– Computer: {computer}")

    if user == computer:
        print("๐Ÿ˜ It's a draw!")
        draw_count += 1
    elif (user == "Scissors" and computer == "Paper") or \
         (user == "Rock"     and computer == "Scissors") or \
         (user == "Paper"    and computer == "Rock"):
        print("๐ŸŽ‰ You win!")
        win_count += 1
    else:
        print("๐Ÿ˜ข You lose...")
        lose_count += 1

    print(f"Score: {win_count}W {lose_count}L {draw_count}D\n")

    if win_count == 3:
        print("๐Ÿ† 3 wins! You're amazing!")
        break
    elif lose_count == 3:
        print("๐Ÿ’ช 3 losses. Try again!")
        break

print(f"\n=== Final Score ===")
print(f"{win_count}W {lose_count}L {draw_count}D")
โ–ถ Sample Output๐ŸŽฎ Rock Paper Scissors! First to win 3 rounds wins! 1:Rock 2:Paper 3:Scissors 0:Quit Your choice: 2 ๐Ÿ™‹ You: Paper ๐Ÿค– Computer: Rock ๐ŸŽ‰ You win! Score: 1W 0L 0D 1:Rock 2:Paper 3:Scissors 0:Quit Your choice: 3 ๐Ÿ™‹ You: Scissors ๐Ÿค– Computer: Scissors ๐Ÿ˜ It's a draw! Score: 1W 0L 1D ... ๐Ÿ† 3 wins! You're amazing! === Final Score === 3W 1L 1D

๐Ÿ’ช Challenge!

  1. Change it to best of 5 (first to 3 wins) instead!
  2. Save each round result in a list and print the full game history!
  3. Can you make the computer always win? (Think about how!)

๐ŸŽฏ Final Quiz!

Q1. What is the simplest way to print 5 stars on one line?

Q2. How do you load the random module in Python?