An ordered set of instructions. It reads input, follows rules, and produces output.
Loading...
Loading...
Workspace
automation data scripts and backend APIs
Definition first
Python is a programming language for writing exact instructions, often used for automation data scripts and backend APIs. Start with one mental model: input goes through steps and becomes output.
app.pyRun python app.pyHabit Use a tiny script and print the data shape after every transformationAn ordered set of instructions. It reads input, follows rules, and produces output.
A value is data. A variable is the name you use to hold and reuse that data.
A named piece of work. It takes input, does one job, and can return a result.
Python 3 is the place that actually runs code from app.py.
First readable code
score = 40 + 2 print(score)
Output 42Language lineage
See where Python comes from, which languages feel close, and what to learn next.
Zero base path
Question bank
Pick a stage or search across the open programming bank. Jump straight to the matching drill.
Python question 1. Choose the statement that matches function definition.
Python question 2. Choose the statement that matches list append.
Python question 3. Choose the statement that matches dictionary access.
Python question 4. Choose the statement that matches for loop.
Python question 5. Choose the statement that matches function definition.
Python question 6. Choose the statement that matches list append.
Python question 7. Choose the statement that matches dictionary access.
Python question 8. Choose the statement that matches for loop.
Python question 9. Choose the statement that matches function definition.
Python question 10. Choose the statement that matches list append.
Python question 11. Choose the statement that matches dictionary access.
Python question 12. Choose the statement that matches for loop.
Python question 13. Choose the statement that matches function definition.
Python question 14. Choose the statement that matches list append.
Python question 15. Choose the statement that matches dictionary access.
Python question 16. Choose the statement that matches for loop.
Python question 17. Choose the statement that matches function definition.
Python question 18. Choose the statement that matches list append.
Multiple choice
Python question 1. Choose the statement that matches function definition.
def add(a, b):
return a + bReference
python app.pynames lists dictionaries strings
score = 40 + 2 print(score)
def parameters return
def add(a, b):
return a + b
print(add(2, 3))for ranges lists dictionaries
for item in ["a", "b"]:
print(item)