HomeAll tracks · pricing · account
Python11 apps · Python, SQL & data
Start free Log in
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
All Modules · 👋 Your First Python Program
Loading Python…
Module 1
BitSize Python
Data Science
▸ 1. Your First Python Program
Start here. Print your first lines, store values in variables, …
1 print() — making Python show something
2 Variables — giving a value a name
3 Naming rules and good names
4 Python runs your code from top to bottom
5 Reading an error message
▸ 2. Python Data Types
Master Python's core data types — strings, sets, numbers, lists, …
1 String Data Type
2 Set Data Type
3 Numbers Data Type
4 List Data Type
5 Dictionary Data Type
6 Tuple Data Type
▸ 3. Python Indentation
Understand how Python uses indentation instead of braces to define …
1 What Indentation Means in Python
2 Spaces vs Tabs — The Rule
3 How Python Parses Indentation
▸ 4. Comments and Documentation
Write clear single-line and multi-line comments, understand Python docstrings, and …
1 Single-line and Inline Comments
2 Multi-line Comments
3 Docstrings — Documenting Functions
4 Accessing Docstrings at Runtime
5 Google Style Docstrings
▸ 5. Date and Time — Timezones and Parsing
Parse strings into datetime objects, work with timezone-aware datetimes, switch …
1 Basic datetime Objects
2 Computing Time Differences with timedelta
3 Parsing Strings into datetime Objects
4 Formatting datetime Objects to Strings
5 Timezone-Aware Datetimes
6 Iterating Over a Range of Dates
▸ 6. Date Formatting
Master strftime and strptime format codes, compute time between datetimes, …
1 Time Between Two Datetimes
2 Outputting datetime to String — strftime
3 Parsing String to datetime — strptime
4 ISO 8601 Timestamps
5 Converting Unix Timestamps
▸ 7. Enum — Enumerated Constants
Use Python's Enum class to create named, readable constants. Learn …
1 Creating and Accessing Enums
2 Iterating Over Enums
3 Comparing Enum Members
4 Enums in Practice — Replacing Magic Numbers
5 IntEnum — Ordered Enums with Integer Behaviour
▸ 8. Sets — Operations and Use Cases
Master set operations — intersection, union, difference, symmetric difference, subset …
1 The Four Core Set Operations
2 Subset, Superset, and Disjoint Checks
3 Modifying Sets In Place
4 Deduplication — Removing Duplicates from a List
5 Counter — Sets with Counts (Multisets)
▸ 9. Mathematical Operators
Master Python's arithmetic operators — true vs floor division, modulus, …
1 Division — True vs Floor
2 Modulus and divmod()
3 Exponentiation
4 In-Place Operators
5 The math Module — Logarithms and Trig
▸ 10. Bitwise Operators
Understand how Python's bitwise operators work at the binary level …
1 Binary Representation and Bitwise NOT (~)
2 Bitwise AND (&) and OR (|)
3 Bitwise XOR (^)
4 Left Shift (<<) and Right Shift (>>)
5 In-Place Bitwise Operators
▸ 11. Boolean Operators
Master Python's and, or, and not operators — understand short-circuit …
1 Truthy and Falsey Values
2 and — Returns First Falsey or Last Value
3 or — Returns First Truthy or Last Value
4 Short-Circuit Evaluation
5 not — Logical Negation
▸ 12. Operator Precedence
Understand Python's operator evaluation order — PEMDAS, how boolean and …
1 PEMDAS — Python's Evaluation Order
2 Full Precedence Table
3 Chained Comparisons
4 Exponentiation is Right-Associative
5 Floating Point Evaluation Order Gotchas
▸ 13. Variable Scope and Binding
Understand local and global scope, the global and nonlocal keywords, …
1 Local vs Global Scope — The LEGB Rule
2 The global Keyword
3 The nonlocal Keyword (Python 3)
4 UnboundLocalError — the Most Confusing Scope Bug
5 The del Command
▸ 14. Conditionals
Master Python's if/elif/else, ternary expressions, truth value testing, boolean logic …
1 if, elif, and else
2 Ternary Operator — Inline Conditionals
3 Truth Value Testing
4 Testing None vs Empty
5 Using 'in' for Clean Membership Tests
▸ 15. Comparisons
Master Python's comparison operators — ==, !=, <, >, is, …
1 Equality == vs Identity is
2 Chained Comparisons
3 Greater Than and Less Than
4 Not Equal != and Equal ==
5 Comparing Custom Objects with __eq__
▸ 16. Loops
Master for and while loops — break, continue, else clauses, …
1 for Loops and range()
2 while Loops
3 break and continue
4 Loop else Clause
5 Iterating Dictionaries
▸ 17. Arrays and Multidimensional Lists
Understand Python's array module for typed collections, and master multidimensional …
1 The array Module
2 Array Operations
3 Lists of Lists — 2D Arrays
4 Creating 2D Lists Safely
5 3D and Higher Dimensional Lists
▸ 18. Dictionaries
Master Python dictionaries — creation, access, iteration, avoiding KeyError, merging …
1 Creating and Modifying Dictionaries
2 Iterating Over a Dictionary
3 Avoiding KeyError
4 Merging Dictionaries
5 OrderedDict and ** Unpacking
▸ 19. Lists — Methods and Operations
Master every list method — append, extend, insert, pop, remove, …
1 append() vs extend() — the Most Confused Pair
2 insert, pop, remove, index, and count
3 Sorting with sort() and sorted()
4 Copying Lists — Reference vs Shallow vs Deep
5 any(), all(), Deduplication, and Nested List Access
▸ 20. List Comprehensions
Write concise, Pythonic list comprehensions with filters, ternary expressions, nested …
1 Basic List Comprehensions
2 Filtering with an if Clause
3 Ternary Transform (if/else BEFORE the for)
4 Dict, Set, and Generator Comprehensions
5 Nested Loops and Flattening
▸ 21. List Slicing and groupby
Master Python's slice syntax with step arguments, the slice() object …
1 Slicing with start, stop, step
2 Reversing a List
3 Shifting and Rotating with Slicing
4 zip() and zip_longest() for Parallel Iteration
5 itertools.groupby() for Grouping Data
▸ 22. filter() and filterfalse()
Use filter() to select elements based on a predicate function. …
1 Basic filter()
2 filter(None, iterable) — Remove Falsey Values
3 Short-circuit Search with next(filter(...))
4 filterfalse() — Keep Elements Where Function is False
5 filter() vs List Comprehension — When to Use Which
▸ 23. heapq — Priority Queues
Use Python's heapq module to efficiently find the N largest …
1 nlargest() and nsmallest()
2 heapify() — Building a Min-Heap
3 heappush() and heappop()
4 Priority Queue Pattern
5 Max-Heap with Negation
▸ 24. Tuples
Master Python tuples — creation, immutability, packing and unpacking, indexing, …
1 Creating Tuples
2 Tuples are Immutable
3 Packing and Unpacking
4 Indexing and Slicing Tuples
5 Tuples as Dict Keys and in Sets
▸ 25. Basic Input and Output
Master Python's print() function, reading and writing files with open(), …
1 print() and Its Parameters
2 Reading and Writing Files
3 File Position with tell() and seek()
4 input() — Getting User Input
5 Reading from stdin
▸ 26. Linked Lists
Understand how linked lists work — nodes, references, and traversal. …
1 What is a Linked List?
2 LinkedList — add(), isEmpty(), size()
3 search() and remove()
4 append() and insert()
5 A Simpler Node — Functional Style (Chapter 25)
▸ 27. os.path — File Path Manipulation
Use os.path to join, split, check, and manipulate file paths …
1 os.path.join() — Building Paths Cross-Platform
2 Splitting Paths — dirname, basename, split, splitext
3 Checking Paths — exists, isfile, isdir, islink
4 Absolute Paths — abspath, getcwd, pardir
5 Common Patterns — Building Paths Relative to a Script
▸ 28. Iterables and Iterators
Understand the difference between iterables, iterators, and generators — how …
1 Iterable vs Iterator vs Generator
2 What Can Be Iterated
3 Iterators are Single-Use
4 Building a Custom Iterable Class
5 Extracting Values — next() with Default, Unpacking
▸ 29. Functions
Master Python functions — defining, calling, default arguments, *args/**kwargs, keyword-only …
1 Defining and Calling Functions
2 *args — Variable Positional Arguments
3 **kwargs — Variable Keyword Arguments
4 Lambda — Inline Anonymous Functions
5 Closures and Keyword-Only Arguments
▸ 30. Functions with List Arguments
Understand how lists are passed to functions — mutation vs …
1 Lists as Function Arguments
2 Mutation vs Rebinding
3 Defensive Copying Inside Functions
4 Functions That Accept Any Iterable
5 Common List-Processing Patterns
▸ 31. Functional Programming — map, reduce, filter
Apply functional programming techniques in Python — map() to transform, …
1 map() — Transform Every Element
2 filter() — Select Matching Elements
3 reduce() — Accumulate to a Single Value
4 Partial Functions — Pre-filling Arguments
5 Combining map, filter, and reduce
▸ 32. Decorators
Use Python decorators to add behaviour to functions and classes …
1 What a Decorator Is
2 Preserving Metadata with @functools.wraps
3 Decorator Factories — Decorators with Arguments
4 Practical Decorators — Timer and Logger
5 Singleton Decorator
▸ 33. Classes
Master Python classes — __init__, class vs instance variables, methods, …
1 Defining a Class — __init__, class vs instance attributes
2 Inheritance and super()
3 @classmethod and @staticmethod
4 @property — Computed and Validated Attributes
5 Multiple Inheritance and MRO
▸ 34. String Formatting
Master Python's three string formatting systems — % operator, str.format(), …
1 str.format() — The Core System
2 Alignment and Padding
3 Float Formatting and Number Bases
4 f-strings — Modern String Formatting
5 Named Placeholders, Dict Unpacking, and Datetime
▸ 35. String Methods
Master Python's string methods — case conversion, split/join/replace, strip, find/count, …
1 Case Conversion Methods
2 split(), join(), and replace()
3 strip(), lstrip(), rstrip()
4 find(), count(), startswith(), endswith()
5 isalpha, isdigit, isalnum, isspace and the string Module
▸ 36. Using Loops Within Functions
Understand how return works inside loops, how to use for/else …
1 return Inside a Loop — Early Exit
2 Returning a Value Found in a Loop
3 for / else — Detect Loop Exhaustion
4 Accumulating Results in a Loop
5 yield — Turning a Loop into a Generator
▸ 37. Importing Modules
Master Python's import system — import, from...import, aliasing with as, …
1 import and from...import
2 Resolving Name Collisions
3 __all__ — Controlling What Gets Exported
4 Wildcard Imports — and Why to Avoid Them
5 PEP 8 Import Order and Dynamic Imports
▸ 38. Modules vs Packages
Understand the difference between a module (a single .py file) …
1 What is a Module?
2 What is a Package?
3 __init__.py — The Package Initialiser
4 Importing from Sub-Packages
5 Module vs Package — Key Differences
▸ 39. The math Module
Use Python's math module for rounding (floor/ceil/trunc), trigonometry, logarithms, infinity, …
1 Rounding: round, floor, ceil, trunc
2 Mathematical Constants and Powers
3 Trigonometry
4 Logarithms
5 Infinity, NaN, and Finite Checks
▸ 40. Complex Numbers and cmath
Work with complex numbers in Python — the j notation, …
1 Creating and Accessing Complex Numbers
2 Complex Arithmetic
3 The cmath Module
4 Polar and Rectangular Conversion
5 Special Values and isclose for Complex Numbers
▸ 41. collections Module
Use Python's collections module for specialised data structures — Counter …
1 Counter — Frequency Counting
2 defaultdict — Never Get KeyError
3 OrderedDict — Insertion-Ordered Dict
4 namedtuple — Readable Tuples
5 deque — Double-Ended Queue
▸ 42. The operator Module
Use the operator module to replace lambdas with faster, named …
1 itemgetter — Sort and Group by Field
2 attrgetter — Sort by Object Attribute
3 methodcaller — Call a Method on Each Item
4 Operator Functions as First-Class Callables
5 Practical Patterns — itemgetter in GroupBy and Multi-Sort
▸ 43. The json Module
Serialize Python objects to JSON and deserialize JSON back to …
1 dumps and loads — Strings
2 dump and load — Files
3 Formatting Output — indent, sort_keys, separators
4 Type Mapping — Python ↔ JSON
5 Custom Encoding — Non-Serialisable Types
▸ 44. sqlite3 — Embedded Database
Use Python's built-in sqlite3 module to create and query an …
1 Connecting and Creating a Database
2 Querying Data — fetchone, fetchall, and iteration
3 Parameterised Queries — Preventing SQL Injection
4 Using the Context Manager — with conn:
5 Row Factories and Named Column Access
▸ 45. The os Module
Use Python's os module for portable operating-system operations — creating …
1 Current Directory and Environment
2 Creating and Removing Directories
3 Listing and Walking the Filesystem
4 File Operations and Permissions
5 os.path — Path Utilities Recap
▸ 46. The itertools Module
Master Python's itertools for efficient lazy iteration — combinations/permutations, chain, …
1 Combinatorics — combinations, permutations, product
2 chain, cycle, repeat, count
3 takewhile and dropwhile
4 islice and accumulate
5 groupby — Group Consecutive Elements
▸ 47. The random Module
Generate random numbers and make random selections — randint, randrange, …
1 Random Integers and Floats
2 Sequences: choice, sample, shuffle
3 Seeding for Reproducibility
4 Probability-Based Decisions
5 SystemRandom for Cryptographic Security
▸ 48. functools — Higher-Order Function Tools
Use functools to write cleaner, more efficient Python — partial() …
1 partial() — Pre-filling Function Arguments
2 @lru_cache — Memoisation
3 reduce() — Cumulative Reduction
4 @total_ordering — Complete Comparison from Two Methods
5 @wraps — Preserving Function Metadata in Decorators
▸ 49. Indexing and Slicing
Master Python's slice syntax in full — start:stop:step, negative indices, …
1 Basic Indexing — Positive and Negative
2 Slicing — start:stop:step
3 Reversing Sequences with [::-1]
4 Slice Assignment
5 Shallow Copies with [:] and the slice() Object
▸ 50. Generators
Create memory-efficient iterators with generator functions (yield) and generator expressions. …
1 Generator Functions and yield
2 Generator Expressions
3 Infinite Sequences
4 yield from — Delegating to Sub-Generators
5 Generators are Single-Use and Support send()
▸ 51. map() — Transform Iterables
Use map() to apply a function to every element of …
1 Basic map() Usage
2 Mapping Multiple Iterables in Parallel
3 map() with string and type methods
4 map() vs List Comprehension — When to Use Each
5 Combining map() with filter(), sorted(), and functools.partial
▸ 52. Exponentiation
Master Python exponentiation — the ** operator, pow() with two …
1 ** and pow() — Basic Exponentiation
2 Square Roots: math.sqrt and cmath.sqrt
3 Nth Roots with Fractional Exponents
4 Three-Argument pow() — Modular Exponentiation
5 math.exp() and math.expm1() — Exponential Functions
▸ 53. Searching in Python
Search sequences efficiently — the in operator across all collection …
1 The in Operator — Membership Testing
2 list.index(), tuple.index() — Finding Position
3 String Searching: find() vs index()
4 Searching Dict Values and Reverse Lookup
5 bisect — Fast Searching in Sorted Sequences
▸ 54. Sorting, min() and max()
Master Python's sorting tools — sorted() vs .sort(), min/max with …
1 sorted(), min(), and max() with key=
2 reverse=True and Stable Sort
3 Sorting Dicts by Key or Value
4 min() and max() — default= and multiple args
5 Making Custom Classes Orderable
▸ 55. Counting Occurrences
Count elements efficiently — Counter.most_common(), list.count() and tuple.count() for single …
1 Counter — Count Everything at Once
2 list.count() and tuple.count() — Single Value
3 str.count() — Substring Occurrences
4 Manual Counting with Dicts and Comprehensions
5 Counting in Nested and Complex Structures
▸ 56. Regular Expressions
Use Python's re module to match, search, find, replace, and …
1 match(), search(), and Raw Strings
2 findall() and finditer()
3 Groups and Named Groups
4 sub() — Replacing with Patterns
5 Flags, Precompiled Patterns, and split()
▸ 57. Copying Data — Shallow vs Deep
Understand shallow and deep copies — why b = a …
1 Reference Assignment — No Copy at All
2 Shallow Copy — Independent at the Top Level
3 Deep Copy — Fully Independent
4 Choosing the Right Copy Method
▸ 58. Context Managers — the with Statement
Use Python context managers for safe resource management — the …
1 The with Statement — Automatic Cleanup
2 Writing a Custom Context Manager with __enter__ and __exit__
3 @contextmanager — Generator-Based Context Manager
4 Multiple Context Managers
▸ 59. __name__ and Script vs Module
Use __name__ to write code that behaves differently when run …
1 __name__ == '__main__' — Run vs Import Guard
2 Accessing __name__ on Functions, Classes, and Modules
3 Using __name__ for Logging
4 os.access() — Checking File Permissions
▸ 60. Python Packages and pip
Understand how Python packages work — installing, upgrading, uninstalling and …
1 pip — Installing and Managing Packages
2 requirements.txt — Reproducible Environments
3 Virtual Environments — Isolated Python Environments
4 Creating a Simple Package — setup.py
5 Handling Import Errors Gracefully
▸ 61. Command-Line Arguments — argparse
Build professional command-line interfaces with argparse — positional and optional …
1 sys.argv — Raw Command-Line Access
2 ArgumentParser — Basic Positional and Optional Args
3 Argument Types, Defaults, and Flags
4 Mutually Exclusive Groups and Argument Groups
5 nargs — Multiple Values and Custom Error Messages
▸ 62. The subprocess Module
Run external commands and programs from Python using subprocess — …
1 subprocess.run() — The Modern Way
2 Capturing Output and Errors
3 subprocess.call() and check_call() — Legacy Helpers
4 Popen — Fine-Grained Process Control
5 Building Safe Command Lists with shlex
Module 1 · print() — making Python show something
Read every topic to open the quiz
0/0
1
print() — making Python show something
Unread
▶
A Python program is a list of instructions that run one after another. The first instruction almost everyone learns is print(): it shows whatever you put between its brackets. Text goes inside quotes — 'single' or "double", both work. Numbers go in without quotes. Give print() several things separated by commas and it shows them on one line with a space between each. Press Run on the examples below: the output panel shows exactly what print() produced.

Text needs quotes, numbers don't. Each print() starts a new line.

print('Hello, world!')
print("Double quotes work too")
print(42)
print(3.5)

Commas: several values on one line, separated by spaces.

print('I am', 30, 'years old')
print('2 + 3 =', 2 + 3)
2
Variables — giving a value a name
Unread
▶
A variable is a name that points at a value. You create one with a single equals sign: name = value. Read = as 'is set to', not 'equals'. Once a name exists you can use it anywhere you would use the value. You can also point the same name at a new value later — the old one is simply forgotten. A very common pattern is updating a variable from its own current value: score = score + 10 means 'take the current score, add 10, and store the result back in score'.

Create two variables and use them.

city = 'Lisbon'
population = 545000
print(city, 'has', population, 'people')

Reassigning and updating a variable.

score = 0
print('start:', score)
score = score + 10
print('after one goal:', score)
score = 100
print('reset to:', score)
3
Naming rules and good names
Unread
▶
Variable names may use letters, digits and the underscore _, but must not start with a digit and cannot contain spaces or hyphens. Python is case-sensitive: age, Age and AGE are three different names. Some words are reserved by Python itself (if, for, class, True, None…) and can't be used as names. By convention Python names are written in snake_case: lower-case words joined by underscores, like total_price or user_name. Pick names that say what the value means — total_price beats tp or x.

Valid, readable snake_case names. Case matters: these are two different variables.

total_price = 19.99
items_in_cart = 3
first_name = 'Ada'
name = 'lower'
Name = 'Upper'
print(name, Name)
4
Python runs your code from top to bottom
Unread
▶
Python reads your program line by line, from the first line to the last, and does each instruction in turn. That has two consequences. First, a name must be created before it is used: if line 1 prints total and total is only set on line 2, Python stops with an error at line 1. Second, a variable holds whatever it was last set to at that moment. b = a copies a's CURRENT value into b; changing a afterwards does not change b. Use Step through on the example to watch each line run and the variables change.

Step through this: b keeps the value a had when b was set.

a = 5
b = a
a = 99
print('a is', a)
print('b is', b)
5
Reading an error message
Unread
▶
Errors are normal — every programmer sees them all day. When Python can't run a line it stops and prints a traceback. Read it from the bottom: the last line names the error type and says what went wrong, and the lines above point at where it happened. Three you will meet first: • NameError — you used a name that doesn't exist (often a typo or wrong capital letter). • SyntaxError — the line isn't valid Python (a missing bracket or quote). • TypeError — an operation on the wrong kind of value, like adding text to a number.

Run it: a NameError. The last line says which name Python couldn't find.

message = 'hi'
print(mesage)

Run it: a TypeError — text and a number can't be added with +.

age = 30
print('Age: ' + age)
Read every trap to open the quiz
0/0
1
Using a variable before you create it
Unread
▶
Python runs from top to bottom, so a name only exists after the line that assigns it. Using it earlier raises NameError.
❌ The tempting version Run it — or step through it — and watch it go wrong.
print(total)
total = 10 + 5
Watch it break first — the fix sticks better that way.
✅ The fix Changed lines are marked in green.
total = 10 + 5
print(total)
Why? Assign first, use second. When you see NameError, check the name is spelled the same way AND that its assignment runs before this line.
2
Quotes around a variable's name
Unread
▶
Quotes turn something into text. print('name') prints the four letters n-a-m-e, not the value stored in the variable name.
❌ The tempting version Run it — or step through it — and watch it go wrong.
name = 'Grace'
print('Hello,', 'name')
Watch it break first — the fix sticks better that way.
✅ The fix Changed lines are marked in green.
name = 'Grace'
print('Hello,', name)
Why? Quotes = this exact text. No quotes = look up this variable. Leave the quotes off when you mean the variable.
3
Adding text and a number with +
Unread
▶
+ joins two pieces of text, or adds two numbers — but it can't do one of each. 'Age: ' + 30 raises TypeError.
❌ The tempting version Run it — or step through it — and watch it go wrong.
age = 30
print('Age: ' + age)
Watch it break first — the fix sticks better that way.
✅ The fix Changed lines are marked in green.
age = 30
print('Age:', age)          # a comma puts a space between them
print('Age: ' + str(age))   # or turn the number into text first
print(f'Age: {age}')        # or use an f-string
Why? Either pass both to print() with a comma, convert the number with str(), or use an f-string (you'll meet those properly in a later module).
4
Capital letters change the name
Unread
▶
Python is case-sensitive. Score and score are different variables, so a wrong capital letter gives a NameError — or worse, silently uses a different variable.
❌ The tempting version Run it — or step through it — and watch it go wrong.
Score = 10
print(score)
Watch it break first — the fix sticks better that way.
✅ The fix Changed lines are marked in green.
score = 10
print(score)
Why? Stick to lower-case snake_case for variables and you will rarely trip over this.
5
Reusing a built-in name like print
Unread
▶
Names such as print, list or input already mean something. Python lets you reassign them — and then they stop working for the rest of the program.
❌ The tempting version Run it — or step through it — and watch it go wrong.
print = 'oops'
print('Hello')
Watch it break first — the fix sticks better that way.
✅ The fix Changed lines are marked in green.
label = 'oops'
print('Hello', label)
Why? After print = 'oops', the name print points at a piece of text, and text can't be called like a function (TypeError: 'str' object is not callable). Choose a different name.
Question 1 Easy
What does print() do?
Question 2 Easy
Which of these is a valid variable name?
Question 3 Easy
What does this print?
x = 5
x = x + 3
print(x)
🔒 unlocks once you check your answers
Question 4 Medium
What does this print — or which error does it raise?
Score = 10
print(score)
🔒 unlocks once you check your answers
Question 5 Easy
Where in an error message do you find the error type and what went wrong?
Answer every question to check your work.
Challenge 1 What is printed?
print('Hello', 'world', 2026)
🔒 unlocks once every prediction is checked

My prediction:

Challenge 2 What is printed?
a = 3
b = a
a = 10
print(a, b)
🔒 unlocks once every prediction is checked

My prediction:

Challenge 3 What are the two printed lines?
print('3' + '4')
print(3 + 4)
🔒 unlocks once every prediction is checked

My prediction:

Challenge 4 What are the two printed lines?
name = 'Ada'
print('name')
print(name)
🔒 unlocks once every prediction is checked

My prediction:

Challenge 5 What is printed?
count = 0
count = count + 1
count = count + 1
print(count * 10)
🔒 unlocks once every prediction is checked

My prediction:

Commit to a prediction on every challenge to check your work.