<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/5-good-function-habits-in-python-2zgswp4ba" -->

---
title: 5 Good Function Habits in Python | daily.dev
description: In today&#x27;s video we&#x27;re going to learn about 5 good function habits that you can use in your everyday Python scripts!

▶ Try Zed for free:...
canonical: https://daily.dev/posts/5-good-function-habits-in-python-2zgswp4ba
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: 5 Good Function Habits in Python | daily.dev
og:description: In today&#x27;s video we&#x27;re going to learn about 5 good function habits that you can use in your everyday Python scripts!

▶ Try Zed for free:...
og:url: https://daily.dev/posts/5-good-function-habits-in-python-2zgswp4ba
og:image: https://api.daily.dev/og/posts/2ZGSWp4ba.png
og:image:alt: 5 Good Function Habits in Python
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 Good Function Habits in Python

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

## Summary

In today's video we're going to learn about 5 good function habits that you can use in your everyday Python scripts!

▶ Try Zed for free: http://zed.dev/download
▶ Become job-ready with Python: https://www.indently.io
▶ Learn Rust with me: https://www.youtube.com/@Rustfully

00:00 Learning Python made simple
00:02 Intro
00:19 Return types
02:56 Parameter types
04:51 Mutable defaults
07:00 Removing dependencies
09:12 Guard clause
11:35 Wrapping it up

This script was written by:
Indently

## Full article

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

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

[View this post on daily.dev](https://daily.dev/posts/5-good-function-habits-in-python-2zgswp4ba)

```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 Good Function Habits in Python","url":"https://daily.dev/posts/5-good-function-habits-in-python-2zgswp4ba","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/5-good-function-habits-in-python-2zgswp4ba"},"datePublished":"2026-02-01T19:27:42.736Z","dateModified":"2026-02-01T21:14:44.998Z","description":"In today's video we're going to learn about 5 good function habits that you can use in your everyday Python scripts!\n\n▶ Try Zed for free:...","image":"https://i.ytimg.com/vi/LqpdsBqa1VE/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/LqpdsBqa1VE/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-good-function-habits-in-python-2zgswp4ba","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"","timeRequired":"PT11M","video":{"@type":"VideoObject","name":"5 Good Function Habits in Python","description":"In today's video we're going to learn about 5 good function habits that you can use in your everyday Python scripts!\n\n▶ Try Zed for free:...","thumbnailUrl":"https://i.ytimg.com/vi/LqpdsBqa1VE/sddefault.jpg","uploadDate":"2026-02-01T19:27:42.736Z","duration":"PT11M","url":"https://api.daily.dev/r/2ZGSWp4ba","embedUrl":"https://www.youtube.com/embed/LqpdsBqa1VE"}}
{"@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 Good Function Habits in Python"}]}
```

