Tagged: python
Everything tagged "python", newest first.
Python Coding Exercise #04: User Input and f-Strings
Five beginner Python exercises that combine input() with f-strings — printing a name twice, adding exclamation marks, formatting an address, fixing an f-string program, and filling in a story.
Python Coding Exercise #03: Printing Output
Two beginner Python exercises on print() — calculating the minutes in a year inside a print statement, and printing a line of code that itself contains quotation marks.
Core Data Structures in Python: Lists, Tuples, Sets and Dictionaries
A beginner-friendly guide to Python's four core data structures — lists, tuples, sets and dictionaries — with examples, a comparison table, and a simple guide to choosing the right one.
Data Types in Python: A Beginner's Guide
A beginner-friendly guide to all of Python's built-in data types — numbers, text, booleans, None, lists, tuples, ranges, dictionaries, sets and bytes — plus mutability, type checking and type conversion.
Python Coding Exercise #02: Sorting Names
A beginner Python exercise on lists, the sort() method, and for loops — fix a program so the names of the seven brothers from "Seitsemän veljestä" print in alphabetical order.
Python Coding Exercise #01: Predict the Output
A beginner-friendly Python practice exercise focused on understanding input(), strings, integers, and basic operators. In this exercise, predict the output of a short Python program before running it, then check the answer and understand why Python produces that result.
What is Python Programming?
What Python programming is, and why I, a non-coder from a marketing background, decided to learn it.