Example
Creating Lists
Lists store multiple elements in a specific order. Basics of working with lists.
Showing 1–10 of 21
Example
Lists store multiple elements in a specific order. Basics of working with lists.
Example
Tuples are immutable lists. Once created, they cannot be modified.
Example
How to create text and join it in Python. Basics of working with strings.
Example
Functions group code for reuse. Defining functions with def keyword.
Example
Sets store only unique elements without a specific order.
Example
Dictionaries store data as key-value pairs. Fast access to data by key.
Example
Variables store data in your program. Learning to create and name variables in Python.
Quiz
Free beginner quiz on Python sets: 15 questions on creating sets, add(), update(), remove(), union, intersection, difference and subsets. Instant answers.
Challenge
refuel() assigns to fuel_kg inside the function, creating a local variable and leaving the global fuel unchanged. Predict the last line, compare both values, fix it by returning the total, then write…
Article Mini projects
…learned here: database management in Python , Python GUI creation , and error handling - are crucial not just for space station software, but for many Earth-bound applications too. Keep exploring…