The Teclado Blog
  • Start Learning Python
  • Courses
Phil Best

Phil Best

I'm a freelance developer, mostly working in web development. I also create course content for Teclado!

Budapest, Hungary •
49 posts •
A Closer Look at Python's Print Function
Python Snippets

A Closer Look at Python's Print Function

Print is one of the first functions we encounter when learning Python, but it can do a lot more than say "Hello, world!". Learn about print's other options and master this common function!

    Phil Best
    2 min read · Jul 8
Destructuring in Python
Learn Python Programming

Destructuring in Python

In this post we take a look at destructuring, also called "unpacking". We can use it to split a collection into single values, e.g. for multiple assignment.

    Phil Best
    6 min read · Jul 4
Python Easter Eggs
Python Snippets

Python Easter Eggs

This week we take a look at some of Python's hidden Easter eggs, including perhaps the most important module in all of Python: antigravity.

    Phil Best
    2 min read · Jul 1
Coding Interview Problems: Rotating a List
Coding Interview Problems

Coding Interview Problems: Rotating a List

In this post we tackle another common coding interview problem: rotating a list. Avoid common pitfalls and impress at your next coding interview.

    Phil Best
    9 min read · Jun 27
Python Deques
Python Snippets

Python Deques

Deques are a very handy collection type from the built-in "collections" module. They extend the functionality of lists and give us a couple more useful methods. Learn about them in this post!

    Phil Best
    2 min read · Jun 24
Python Itertools Part 2 - Combinations & Permutations
Python Snippets

Python Itertools Part 2 - Combinations & Permutations

This week we continue our look at the itertools module, this time covering the permutations and combinations functions.

    Phil Best
    2 min read · Jun 17
Coding Interview: Find the Longest Word
Coding Interview Problems

Coding Interview: Find the Longest Word

In this post we tackle another common coding interview problem: finding the longest word in a paragraph. Avoid some common pitfalls and ace your interview.

    Phil Best
    8 min read · Jun 13
Python Itertools Part 1 - Product
Python Snippets

Python Itertools Part 1 - Product

The itertools module contains a bunch of handy functions. Here we take a look at product, which can serve as a replacement for complex comprehensions.

    Phil Best
    3 min read · Jun 10
Python's symmetric_difference Method for Sets
Python Snippets

Python's symmetric_difference Method for Sets

In this Python snippet post we cover a lesser known set method: symmetric_difference.

    Phil Best
    1 min read · Jun 3
Python Comprehensions with Conditionals
Python Snippets

Python Comprehensions with Conditionals

In this snippet post we show you how to add conditional clauses to your list comprehensions. Once you know how to use it, this kind of filtering is very powerful.

    Phil Best
    2 min read · May 27
Coding Interview Problems: FizzBuzz
Coding Interview Problems

Coding Interview Problems: FizzBuzz

In this post we provide a walk through for a common interview problem: FizzBuzz. Avoid some common mistakes and breeze through this problem in your next coding interview.

    Phil Best
    6 min read · May 23
List Comprehensions in Python
Python Snippets

List Comprehensions in Python

Learn how to use Python's list comprehension syntax: an awesome, Pythonic tool for creating new lists from existing iterables.

    Phil Best
    1 min read · May 20
Creating a New Sequence Type in Python - Part 3
Learn Python Programming

Creating a New Sequence Type in Python - Part 3

In this post we continue our journey to create a new sequence type using classes and Python's special methods. This time we focus on operator overloading!

    Phil Best
    9 min read · May 16
Python's Enumerate Function
Python Snippets

Python's Enumerate Function

In this Python snippet post we take a look at the enumerate function: a vital tool for creating Pythonic loops.

    Phil Best
    1 min read · May 13
Coding Interview Problems: Reversing a List (Python)
Coding Interview Problems

Coding Interview Problems: Reversing a List (Python)

Reversing a list is one of the most commonly asked interview problems. It's asked to test fundamental knowledge and also your problem-solving skills. In this post we look at a couple different ways to reverse a list easily!

    Phil Best
    6 min read · May 9
Python Set Operators
Python Snippets

Python Set Operators

In this post we cover shorthand operators for performing set operations in Python. We'll look at the three most common ones: union, intersection, and difference.

    Phil Best
    1 min read · May 6
Quick Sequence Reversal in Python
Python Snippets

Quick Sequence Reversal in Python

Python lists have a handy method called reverse, but it's not always what we want. For a start, we can't use it on other sequence types, like tuples and strings, and it also

    Phil Best
    1 min read · Apr 29
Creating a New Sequence Type in Python - Part 2
Learn Python Programming

Creating a New Sequence Type in Python - Part 2

In this post we continue our journey to master Python's dunder methods by creating a new sequence type from scratch.

    Phil Best
    10 min read · Apr 25
More Uses for Else in Python
Python Snippets

More Uses for Else in Python

Get familiar with the different uses for else in Python. It's not just for if statements: we can use it with loops, and for error handling too!

    Phil Best
    2 min read · Apr 22
Creating a New Sequence Type in Python - Part 1
Learn Python Programming

Creating a New Sequence Type in Python - Part 1

Learn to exploit the power of Python's magic methods by creating a new sequence type from scratch!

    Phil Best
    9 min read · Apr 19
Python Slices Part 2: The Deep Cut
Learn Python Programming

Python Slices Part 2: The Deep Cut

In this post we take a deeper dive into Python slices, and pull back the curtain on the magic methods behind the slice notation we covered in earlier posts.

    Phil Best
    4 min read · Apr 14
Python Slices
Learn Python Programming

Python Slices

Slices are amazing whenever you want to use a piece of a larger sequence. Learn the basics of slicing in Python and add a powerful tool to your repertoire.

    Phil Best
    6 min read · Apr 7
Rounding in Python
Learn Python Programming

Rounding in Python

Take a deep dive into Python's rounding functions! Learn about floor, ceil, trunc, and round, and avoid common rounding errors in Python.

    Phil Best
    3 min read · Mar 31
Python's modulo operator and floor division
Learn Python Programming

Python's modulo operator and floor division

Learn about the some less well-known operators in Python: modulo and floor division—as well as how they interact with each other and how they're related!

    Phil Best
    4 min read · Mar 26
The Teclado Blog © 2025
Privacy Policy