🐍 Python Tutorial

Project 2 — Target Practice 🎯

Draw an archery target on screen, shoot arrows at it, and use Python’s if/elif/else to score points based on where each arrow lands.

🎯 What you’ll build

A bullseye target with red and white rings. Each time you run your program, an arrow lands at a random spot and Python scores it: bullseye, inner ring, outer ring, or miss.

🧩 Python you’ll meet

Note: RPF’s original Target Practice uses the p5 graphics library. Our editor supports turtle instead, so the drawing code looks different — but the Python concept (if/elif/else) is the same.

Start → Step 1

⬅ Back to all projects


Adapted from Raspberry Pi Foundation — Target Practice under CC BY-SA 4.0.