PYCON UK 2025: Why len 4 and other weird things you should know about strings in Python,
Strings in Python behave in all sorts of unexpected ways: len('😶🌫️') == 4, 'ñ' != 'ñ', 'dlrow olleh'.split()[1] == 'olleh'! How is this possible? And importantly, why should you care? In this presentation, we’ll give a brief introduction to text encoding, the different Unicode standards and how Python encodes strings before we dive deep into Unicode oddities. We’ll cover how one code point can represent multiple characters, why converting between upper-case and lower-case characters should be locale-dependent and how emoji’s work. Finally, we will discuss some best practices for handling unicode input in Python. After this talk, you'll have a better understanding of strings in Python, the Unicode character encoding and you’ll be aware of some common pitfalls and how to avoid them. Audience: The content is aimed at someone who has some experience with Python programming but wants to get a deeper understanding of strings and unicode. However, we don’t assume any prerequisite knowledge and will use simple examples, so a curious beginner will be able to follow the talk as well. Yngve Mardal Moe: Yngve is also an experienced Python educator, Python developer and data science consultant. He has taught Python to professionals, university students and academics. While working at the Norwegian University of Life Sciences, he headed a project transforming introduction to Python into a tutorial-based course focusing on active learning. He is currently tech lead, working on automating the Norwegian power grid. Marie Roald: Marie is a researcher, data scientist and educator with over eight years experience teaching Python to middle- and high-school students, teachers and professionals in Norway. As part of her work as a researcher at the Norwegian Language Bank at the National Library of Norway, Marie has first-hand experience dealing with the intricacies of Unicode. Marie is also a co-founder and organiser of PyLadies Oslo.

PYCON UK 2025: How to build a cross platform GUI app with Python, Russell Keith-Magee

Why `len('😶🌫️') == 4` and other weird things you should know about strings in Python

Edoardo Debenedetti

Watch his reaction when he’s told he’s a GOOD BOY for the first time 🥹

Neil Perry

Android 17 sucks. So I put Linux on a phone.

Adrian Spânu Thomas Shadwell

Don't Hang Up On AI Scammers. Do THIS Instead.

MIT Just Revealed the AI Bubble's Fatal Flaw

Psychology of People With Extremely High IQ

Only Video That Will Make You BETTER at MATH - 100%

Why AI Agents are either the best or worst thing we’ve ever built

China Is About To Pop The AI Bubble

The French Do Not Care About Work

Why the Speed of Light Is NOT a Speed - Leonard Susskind

Neil deGrasse Tyson: The Whistleblowers Were Right About Aliens

Something is jamming GPS over Europe. Here's what we found

Ego Bodybuilder HUMILIATED Beyond Belief 🤯 | Anatoly GYM PRANK

PYCON UK 2025: How to be a Python Icon, writing Pythonic Code, Jesse Carnaxide

