<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/5-crazy-python-features-in-under-10-minutes-jj0piiwtm" -->

---
title: 5 Crazy Python Features in Under 10 Minutes | daily.dev
description: A video walkthrough covers five lesser-known Python tricks: using lambdas to create self-executing (IIFE-style) functions, dynamically controlling f-string...
canonical: https://daily.dev/posts/5-crazy-python-features-in-under-10-minutes-jj0piiwtm
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: 5 Crazy Python Features in Under 10 Minutes | daily.dev
og:description: A video walkthrough covers five lesser-known Python tricks: using lambdas to create self-executing (IIFE-style) functions, dynamically controlling f-string...
og:url: https://daily.dev/posts/5-crazy-python-features-in-under-10-minutes-jj0piiwtm
og:image: https://api.daily.dev/og/posts/jj0piIwtm.png
og:image:alt: 5 Crazy Python Features in Under 10 Minutes
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# 5 Crazy Python Features in Under 10 Minutes

**[Indently](https://daily.dev/sources/indently)** · 9 min read · 0 upvotes · 0 comments

## Summary

A video walkthrough covers five lesser-known Python tricks: using lambdas to create self-executing (IIFE-style) functions, dynamically controlling f-string width and fill characters with nested curly braces, understanding the ellipsis Python prints for self-referencing lists, the '@' (matmul) operator for matrix multiplication as used in NumPy, and the fact that dict.keys(), .values(), and .items() return live views that update automatically as the dictionary changes. The video is sponsored by the Zed code editor, mentioned briefly at the start.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=QvG3kyGeHzw>

## Questions this post answers

### How do I control the width and fill character of an f-string dynamically instead of hardcoding them?

Use nested curly braces inside the format specifier to reference variables holding the fill character and width, for example f"{name:{symbol}^{width}}". This lets both the symbol and width be set from variables rather than hardcoded literals, and the same nested-brace technique works for entire format specifiers like decimal precision.

_Developers formatting dynamic output in Python can find more such tricks curated on daily.dev._

### Why does printing a Python list that contains a reference to itself show an ellipsis instead of an error?

Python detects the circular reference and prints an ellipsis (...) in place of infinitely recursing into the list, since a list containing itself would otherwise nest without end. This ellipsis marker is distinct from an actual Ellipsis object placed in a list, and Python can differentiate between the two when printing.

_Anyone debugging self-referencing data structures in Python can keep discovering quirks like this on daily.dev._

### Do dict.keys(), dict.values(), and dict.items() in Python return static snapshots or live views of the dictionary?

They return live views, not static snapshots. Once created, a keys(), values(), or items() object automatically reflects any subsequent additions or deletions made to the original dictionary without needing to be recreated, and can still be used for membership checks and iteration.

_Python developers relying on dictionary views for up-to-date iteration can track such nuances on daily.dev._

## Similar posts on daily.dev

- [Exploring Python's Built-in Functions – Real Python](https://daily.dev/posts/exploring-python-s-built-in-functions-real-python-y62qmyedr) · Real Python · 2 upvotes · 0 comments
- [Supercharge your programming skills with Python superpowers](https://daily.dev/posts/supercharge-your-programming-skills-with-python-superpowers-hgoyiiyt7) · InfoWorld · 0 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python), [#numpy](https://daily.dev/tags/numpy), [#zed](https://daily.dev/tags/zed)

[View this post on daily.dev](https://daily.dev/posts/5-crazy-python-features-in-under-10-minutes-jj0piiwtm)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"5 Crazy Python Features in Under 10 Minutes","url":"https://daily.dev/posts/5-crazy-python-features-in-under-10-minutes-jj0piiwtm","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/5-crazy-python-features-in-under-10-minutes-jj0piiwtm"},"datePublished":"2026-09-30T16:23:36.088Z","dateModified":"2026-09-30T16:23:53.356Z","description":"A video walkthrough covers five lesser-known Python tricks: using lambdas to create self-executing (IIFE-style) functions, dynamically controlling f-string...","image":"https://i.ytimg.com/vi/QvG3kyGeHzw/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/QvG3kyGeHzw/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Indently","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Indently","logo":"https://media.daily.dev/image/upload/s--u6wAXJI9--/f_auto/v1725038127/logos/indently","url":"https://daily.dev/sources/indently"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/5-crazy-python-features-in-under-10-minutes-jj0piiwtm","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python,numpy,zed","timeRequired":"PT9M","video":{"@type":"VideoObject","name":"5 Crazy Python Features in Under 10 Minutes","description":"A video walkthrough covers five lesser-known Python tricks: using lambdas to create self-executing (IIFE-style) functions, dynamically controlling f-string...","thumbnailUrl":"https://i.ytimg.com/vi/QvG3kyGeHzw/sddefault.jpg","uploadDate":"2026-09-30T16:23:36.088Z","duration":"PT9M","url":"https://api.daily.dev/r/jj0piIwtm","embedUrl":"https://www.youtube.com/embed/QvG3kyGeHzw"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Indently","item":"https://daily.dev/sources/indently"},{"@type":"ListItem","position":3,"name":"5 Crazy Python Features in Under 10 Minutes"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/5-crazy-python-features-in-under-10-minutes-jj0piiwtm#faq","mainEntity":[{"@type":"Question","name":"How do I control the width and fill character of an f-string dynamically instead of hardcoding them?","acceptedAnswer":{"@type":"Answer","text":"Use nested curly braces inside the format specifier to reference variables holding the fill character and width, for example f\"{name:{symbol}^{width}}\". This lets both the symbol and width be set from variables rather than hardcoded literals, and the same nested-brace technique works for entire format specifiers like decimal precision. Developers formatting dynamic output in Python can find more such tricks curated on daily.dev."}},{"@type":"Question","name":"Why does printing a Python list that contains a reference to itself show an ellipsis instead of an error?","acceptedAnswer":{"@type":"Answer","text":"Python detects the circular reference and prints an ellipsis (...) in place of infinitely recursing into the list, since a list containing itself would otherwise nest without end. This ellipsis marker is distinct from an actual Ellipsis object placed in a list, and Python can differentiate between the two when printing. Anyone debugging self-referencing data structures in Python can keep discovering quirks like this on daily.dev."}},{"@type":"Question","name":"Do dict.keys(), dict.values(), and dict.items() in Python return static snapshots or live views of the dictionary?","acceptedAnswer":{"@type":"Answer","text":"They return live views, not static snapshots. Once created, a keys(), values(), or items() object automatically reflects any subsequent additions or deletions made to the original dictionary without needing to be recreated, and can still be used for membership checks and iteration. Python developers relying on dictionary views for up-to-date iteration can track such nuances on daily.dev."}}]}
```

