Your Journey
0 / 112 Missions
0%
play_arrow
Mission 1 FREE

Python Intro – What is CPython?

<p> In this lesson, you won’t write code yet. Instead, you will learn about Python and the most common implementation called CPython. </p> <pre> Expected Output Example: - Understand what CPython is - Know why it is widely used </pre> <p> This challenge will help you understand Python's underlying implementation and environment. </p>

lock
Mission 2 FREE

Python Syntax – Writing Your First Python Code

<p> Write a Python script that prints a simple message. Practice Python’s syntax rules including indentation and statements. </p> <pre> Expected Output Example: Hello, Python! </pre> <p> This challenge will help you understand basic Python syntax and how to run simple scripts. </p>

lock
Mission 3 FREE

Python Comments – Documenting Your Code

<p> Write a Python script that prints a message and includes comments to explain the code. Practice both single-line and multi-line comments. </p> <pre> Expected Output Example: Hello, Python! </pre> <p> This challenge will help you learn how to document your Python code effectively. </p>

lock
Mission 4 FREE

Python Variables – Storing Data

<p> Create a Python script that declares variables to store your name, age, and favorite color, then print them to the screen. </p> <pre> Expected Output Example: Name: Akram Age: 21 Favorite Color: Blue </pre> <p> This challenge will help you practice declaring and using variables in Python. </p>

lock
Mission 5 FREE

Python Variable Names – Rules and Best Practices

<p> Create Python variables following proper naming rules. Try to declare a few variables using valid names and print them. </p> <pre> Expected Output Example: user_name: Alice userAge: 25 favorite_color: Blue </pre> <p> This challenge will help you understand the rules and best practices for naming variables in Python. </p>

lock
Mission 6 FREE

Python Assign Multiple Values – Assigning Multiple Variables at Once

<p> Create a Python script where you assign multiple values to multiple variables in a single line, then print all the variables. </p> <pre> Expected Output Example: x: 5 y: 10 z: 15 </pre> <p> This challenge will help you practice assigning values efficiently in Python. </p>

lock
Mission 7 FREE

Python Output Variables – Displaying Values

<p> Create a Python script that declares some variables and prints their values in different ways: separately, combined in one line, and with custom separators. </p> <pre> Expected Output Example: Name: Akram Age: 21 Favorite Color: Blue </pre> <p> This challenge will help you practice using the <code>print()</code> function effectively with variables. </p>

lock
Mission 8 FREE

Global Variables – Accessing Variables Across Functions

<p> Create a Python script that uses a global variable. Modify its value inside a function and print it both inside and outside the function. </p> <pre> Expected Output Example: Inside function: 10 Outside function: 10 </pre> <p> This challenge will help you understand how global variables work in Python. </p>

lock
Mission 9 FREE

Python Data Types – Introduction

<p> Create Python variables of different data types such as integers, floats, strings, and booleans. Print the type of each variable using the <code>type()</code> function. </p> <pre> Expected Output Example: 10 <class 'int'> 3.14 <class 'float'> Hello <class 'str'> True <class 'bool'> </pre> <p> This challenge will help you understand Python’s core data types and how to identify them. </p>

lock
Mission 10 FREE

Python Numbers – Integers and Floats

<p> Create Python variables to store integer and float numbers. Perform basic arithmetic operations like addition, subtraction, multiplication, and division, and print the results. </p> <pre> Expected Output Example: 10 + 5 = 15 10 - 5 = 5 10 * 5 = 50 10 / 5 = 2.0 </pre> <p> This challenge will help you practice working with numbers in Python. </p>

workspace_premium
Mission 11 PREMIUM

Casting

Cast '3' to int and print

lock
Mission 12 FREE

Strings: Basic

Print 'Hi'

lock
Mission 13 FREE

Multiline Strings

Print a 3-line string

lock
Mission 14 FREE

Strings as Arrays

Print first char of 'Hello'

lock
Mission 15 FREE

Slicing Strings

Slice 'Hello' from index 2 to 4

lock
Mission 16 FREE

Negative Slicing

Slice 'Hello' from -4 to -1

lock
Mission 17 FREE

String Length

Print length of 'ABC'

lock
Mission 18 FREE

Check String

Check 'free' in 'The best things are free'

lock
Mission 19 FREE

Modify Strings

Lowercase 'HELLO'

lock
Mission 20 FREE

Replace String

Replace 'H' with 'J' in 'Hello'

lock
Mission 21 FREE

Split String

Split 'A,B' by comma

lock
Mission 22 FREE

String Format

Format age=36: 'I am 36'

lock
Mission 23 FREE

Escape Characters

Print 'Line1 Line2'

lock
Mission 24 FREE

Booleans

Print 10 > 9

lock
Mission 25 FREE

Bool Function

Print bool('Hello')

lock
Mission 26 FREE

Arithmetic Operators

Print 10 % 3

lock
Mission 27 FREE

Assignment Operators

+=

lock
Mission 28 FREE

Comparison Operators

Print 5 == 5

lock
Mission 29 FREE

Logical Operators

Print True and False

lock
Mission 30 FREE

Identity Operators

Check if [1] is [1]

lock
Mission 31 FREE

Python Lists

Create list [1, 2] and print

lock
Mission 32 FREE

Access List Items

Print 2nd item of [10, 20]

lock
Mission 33 FREE

Change List Item

Change [1, 2] to [1, 3]

lock
Mission 34 FREE

Add List Items

Append 3 to [1, 2]

lock
Mission 35 FREE

Remove List Items

Pop last item of [1, 2]

lock
Mission 36 FREE

Loop Lists

Print each item in [1, 2]

lock
Mission 37 FREE

List Comprehension

Create [0, 1, 2] with range

lock
Mission 38 FREE

Sort Lists

Sort [3, 1, 2]

lock
Mission 39 FREE

Copy Lists

Copy list l=[1]

lock
Mission 40 FREE

Join Lists

Join [1] and [2]

lock
Mission 41 FREE

Python Tuples

Create tuple (1, 2)

lock
Mission 42 FREE

Access Tuple

Print 1st item of (10, 20)

lock
Mission 43 FREE

Update Tuples

Change (1, 2) to (1, 3)

lock
Mission 44 FREE

Unpack Tuples

Unpack (1, 2) into a, b

lock
Mission 45 FREE

Loop Tuples

Print each in (1, 2)

lock
Mission 46 FREE

Join Tuples

Join (1,) and (2,)

lock
Mission 47 FREE

Tuple Methods

Count 1 in (1, 1, 2)

lock
Mission 48 FREE

Python Sets

Create set {1, 2}

lock
Mission 49 FREE

Add Set Items

Add 3 to {1, 2}

lock
Mission 50 FREE

Remove Set Items

Remove 1 from {1, 2}

lock
Mission 51 FREE

Python Dictionaries

Create {'a':1}

lock
Mission 52 FREE

Access Dict Items

Get value of 'a'

lock
Mission 53 FREE

Change Dict Items

Change 'a' to 2

lock
Mission 54 FREE

Add Dict Items

Add 'b':2

lock
Mission 55 FREE

Remove Dict Items

Pop 'a'

lock
Mission 56 FREE

Loop Dictionaries

Loop keys of {'a':1}

lock
Mission 57 FREE

Copy Dictionaries

Copy {'a':1}

lock
Mission 58 FREE

Nested Dictionaries

Create {'p':{'id':1}}

lock
Mission 59 FREE

Dictionary Methods

Update {'a':1} with {'b':2}

lock
Mission 60 FREE

If ... Else

Print 'Yes' if 1 < 2

lock
Mission 61 FREE

Elif

Print 'B' if x=2 else 'A'

lock
Mission 62 FREE

Else

Print 'E' if x=3 else 'F'

lock
Mission 63 FREE

Short Hand If

a=2; b=1; if a>b: print('OK')

lock
Mission 64 FREE

Short Hand If Else

Print 'A' if 1>2 else 'B'

lock
Mission 65 FREE

And / Or

Check 1<2 and 2<3

lock
Mission 66 FREE

Nested If

Nested check x > 10

lock
Mission 67 FREE

While Loop

Print 1 to 3 with while

lock
Mission 68 FREE

While Break

Break while if i==3

lock
Mission 69 FREE

While Continue

Skip i==3 in while

lock
Mission 70 FREE

For Loop

Print 1, 2 from list

lock
Mission 71 FREE

For Break

Break for if x==2

lock
Mission 72 FREE

For Continue

Skip 2 in for

lock
Mission 73 FREE

Range Function

Print range(3)

lock
Mission 74 FREE

Functions

Define hello() and call it

lock
Mission 75 FREE

Arguments

Func with name 'Bob'

lock
Mission 76 FREE

*args

Sum arbitrary args

lock
Mission 77 FREE

Keyword Arguments

Func with k1, k2

lock
Mission 78 FREE

**kwargs

Print child name from kwargs

lock
Mission 79 FREE

Default Parameter

Print default 'US'

lock
Mission 80 FREE

Return Values

Return x * 5

lock
Mission 81 FREE

Lambda

Lambda x: x + 10

lock
Mission 82 FREE

Lambda Multiplication

Multiply 5, 6 with lambda

lock
Mission 83 FREE

Classes/Objects

Class MyClass with x=5

lock
Mission 84 FREE

__init__()

Class Person with name

lock
Mission 85 FREE

The self Parameter

Method that prints self.n

lock
Mission 86 FREE

Inheritance

Class Student(Person)

lock
Mission 87 FREE

super()

Call parent __init__

lock
Mission 88 FREE

Iterators

Iterate over list

lock
Mission 89 FREE

Scope

Local x in func

lock
Mission 90 FREE

Global Keyword

Global x in func

lock
Mission 91 FREE

Modules

Import math and print pi

lock
Mission 92 FREE

Math Module

sqrt(64)

lock
Mission 93 FREE

JSON to Python

Parse '{"a":1}'

lock
Mission 94 FREE

Python to JSON

Dump {'a':1}

lock
Mission 95 FREE

Try Except

Try 1/0

lock
Mission 96 FREE

Try Finally

Print 'Done' in finally

lock
Mission 97 FREE

User Input

Mock input (simulated)

lock
Mission 98 FREE

String Formatting

Format 'Price: {:.2f}'

lock
Mission 99 FREE

File Open

Explain modes (r, a, w, x)

lock
Mission 100 FREE

RegEx

Find 'ai' in 'Rain in Spain'

lock
Mission 101 FREE

List sort reverse

Sort [1, 3, 2] desc

lock
Mission 102 FREE

Dict update

Update {'a':1}

lock
Mission 103 FREE

Set intersection

Intersection of {1, 2}, {2, 3}

lock
Mission 104 FREE

Map function

Square [1, 2]

lock
Mission 105 FREE

Filter function

Filter >1 from [1, 2]

lock
Mission 106 FREE

Set union

Union of {1}, {2}

lock
Mission 107 FREE

Dict keys

Get keys of {'a':1}

lock
Mission 108 FREE

String isdigit

Check '123'

lock
Mission 109 FREE

List index

Find 'a' in ['b', 'a']

lock
Mission 110 FREE

Math pow

Print pow(4, 3)

lock
Mission 111 FREE

Math ceil

Ceil 1.4

lock
Mission 112 FREE

Math floor

Floor 1.4

emoji_events

Path Completion

Complete all missions to earn your certificate of mastery.