Python
Articles about Python
Category articles "Python"
Study all materials on this topic
Lists and Dictionaries in Python: Working with Data 📦
So far: one variable = one value.
Loops in Python: while and for 🔄
Imagine: you need to print numbers from 1 to 1000. Write 1000 print() calls? 😱
The while Loop: Repeat While a Condition Holds 🔁
The for loop works great when you know how many times to repeat an action. But what if you don't?
Controlling Time and Randomness in Python ⏱️🎲
Sometimes code runs too fast (all the text dumps on screen in a fraction of a second), or you need...
Math Operations in Python 🧮
Python is a great calculator! Let's cover all the arithmetic operators with examples.
Mixing Text with Numbers (and the Magic of f-strings) 🪄
In programming, we often need to display text alongside numbers or variables. Imagine you're building a game and need to...
Python Data Types: A Complete Guide 🎯
Python can work with different types of data: numbers, text, boolean values. Let's cover all the fundamental types!
Logical Operators in Python: and, or, not 🔗
One condition is fine. But what if you need to check multiple conditions at once?
Python Variables in Plain English 📦
A variable is like a labeled box where you can put any value and use it as many times as...
Functions in Python: Writing Reusable Code 🔧
Imagine: you wrote code to calculate a discount. That code is needed in 10 places in your program!
List Methods: Managing Collections 📝
Lists are not just storage. They come with built-in actions (methods) that let you add, remove, and modify elements.
The for Loop: Making Python Do the Work for You 🔄
Imagine you need to write the word "Hello!" 20 times. You could sit there copying print("Hello!") twenty times. But programmers...
Other categories
Study related topics
Want more materials?
Subscribe to updates and be the first to know about new articles!