<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/sources/planetpython/best-of/2024/04" -->

---
title: Best Planet Python posts — April 2024 | daily.dev
description: The most upvoted Planet Python posts from April 2024, curated by the daily.dev community.
canonical: https://daily.dev/sources/planetpython/best-of/2024/04
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:url: https://daily.dev/sources/planetpython/best-of/2024/04
og:type: website
og:site_name: daily.dev
og:title: Best Planet Python posts — April 2024 | daily.dev
og:description: The most upvoted Planet Python posts from April 2024, curated by the daily.dev community.
og:image: https://media.daily.dev/image/upload/s--VAY5ToZt--/f_auto/v1724209435/public/daily.dev%20-%20open%20graph
---

# Best of Planet Python — April 2024

1. 1  
[](https://daily.dev/posts/on-fastapi-hsy6zvkdm "On FastAPI")  
Article  
![Avatar of planetpython](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/eac3cc584cb043b5a242d13752bd3d0c)Planet Python·2y  
On FastAPI  
FastAPI is a Python web framework that builds on the strengths of Django and Flask while feeling more modern and adhering to certain opinionated principles. It has excellent documentation, includes Swagger UI and Redoc out-of-the-box, and heavily depends on Pydantic for data schemas and validation.  
32  
4
2. 2  
[](https://daily.dev/posts/python-big-o-the-time-complexities-of-different-data-structures-in-python-eaqyheq60 "Python Big O: the time complexities of different data structures in Python")  
Article  
![Avatar of planetpython](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/eac3cc584cb043b5a242d13752bd3d0c)Planet Python·2y  
Python Big O: the time complexities of different data structures in Python  
This post discusses the time complexities of different Python data structures and algorithms. It provides a cheat sheet for time complexity and explains how it affects code performance. The post covers the time complexities of list operations, deque operations, dictionary operations, set operations, Counter operations, heapq operations, and bisect operations. It also provides tips on optimizing code by considering time complexity and thinking in orders of magnitude.  
16
3. 3  
[](https://daily.dev/posts/april-2024-python-monthly-newsletter--66uqpguap "[April 2024] Python Monthly Newsletter 💻🐍")  
Article  
![Avatar of planetpython](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/eac3cc584cb043b5a242d13752bd3d0c)Planet Python·2y  
\[April 2024\] Python Monthly Newsletter 💻🐍  
The April 2024 Python Monthly Newsletter provides curated articles, news, resources, podcasts, and videos for Python developers. It discusses the importance of staying up-to-date in the constantly evolving Python ecosystem and highlights a new Python web framework, security best practices, a fast Python linter and formatter, and the Meta Horizons OS for AR/VR.  
12
4. 4  
[](https://daily.dev/posts/multiline-comments-in-python-4pyjexmap "Multiline comments in Python")  
Article  
![Avatar of planetpython](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/eac3cc584cb043b5a242d13752bd3d0c)Planet Python·2y  
Multiline comments in Python  
Learn how to comment out code blocks in Python using single-line comments and triple quotes. Understand the difference between multi-line comments and docstrings.  
12
5. 5  
[](https://daily.dev/posts/4-ways-to-use-chatgpt-api-in-python-fz3urmlwk "4 Ways to Use ChatGPT API in Python")  
Article  
![Avatar of planetpython](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/eac3cc584cb043b5a242d13752bd3d0c)Planet Python·2y  
4 Ways to Use ChatGPT API in Python  
Learn how to use the ChatGPT API in Python with examples. Access the API by signing up on the OpenAI Platform, generating a secret API key, and calling the API using the provided code. Customize the ChatGPT model, provide system instructions, and make it remember prior conversations. Build a GUI application using tkinter to interact with ChatGPT.  
11

[See all Planet Python archives](/sources/planetpython/best-of)

```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","@graph":[{"@type":"CollectionPage","@id":"https://daily.dev/sources/planetpython/best-of/2024/04#page","url":"https://daily.dev/sources/planetpython/best-of/2024/04","name":"Best Planet Python Posts — April 2024","description":"The most upvoted Planet Python posts from April 2024, curated by the daily.dev community.","isPartOf":{"@type":"WebSite","url":"https://daily.dev"}},{"@type":"ItemList","@id":"https://daily.dev/sources/planetpython/best-of/2024/04#items","numberOfItems":5,"itemListElement":[{"@type":"ListItem","position":1,"url":"https://daily.dev/posts/on-fastapi-hsy6zvkdm","name":"On FastAPI"},{"@type":"ListItem","position":2,"url":"https://daily.dev/posts/python-big-o-the-time-complexities-of-different-data-structures-in-python-eaqyheq60","name":"Python Big O: the time complexities of different data structures in Python"},{"@type":"ListItem","position":3,"url":"https://daily.dev/posts/april-2024-python-monthly-newsletter--66uqpguap","name":"[April 2024] Python Monthly Newsletter 💻🐍"},{"@type":"ListItem","position":4,"url":"https://daily.dev/posts/multiline-comments-in-python-4pyjexmap","name":"Multiline comments in Python"},{"@type":"ListItem","position":5,"url":"https://daily.dev/posts/4-ways-to-use-chatgpt-api-in-python-fz3urmlwk","name":"4 Ways to Use ChatGPT API in Python"}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Sources","item":"https://daily.dev/sources"},{"@type":"ListItem","position":3,"name":"Planet Python","item":"https://daily.dev/sources/planetpython"},{"@type":"ListItem","position":4,"name":"Best of","item":"https://daily.dev/sources/planetpython/best-of"},{"@type":"ListItem","position":5,"name":"April 2024"}]}]}
```

