White Hat – Python Foundations
beginner10 XP
Intro to Python
Discover what Python is, how it's used, and write your first lines of code
Welcome to Python!
Python is one of the most popular programming languages in the world — and it's perfect for beginners because it reads almost like plain English!
What Can Python Do?
- Games – like Minecraft's modding tools
- Websites – Instagram and Pinterest run on Python!
- Artificial Intelligence – teaching computers to think
- Automation – making boring tasks happen automatically
Your First Program
Python
print("Hello, World!")Comments
Python
# This is a comment — Python skips it
print("But this runs!") # end-of-line commentBasic Syntax Rules
- Python is case-sensitive:
Print≠print - Indentation (spaces) matters
- No semicolons needed at line ends!
⌨️
Type it yourself
Don't just read it — type the example from above into the box, press Run ▶, and watch what happens. Typing it yourself is how it really sticks! Stuck? Tap Show example.
Python · Playground
Output
Press ▶ Run to see your code come to life…Quick check
01/3
Which function displays text on the screen in Python?