Isn't this beautiful? 😍
Python 3.11 improved error traceback messages will show the specific place where the error is happening. 🔥
Did you already try it?
🐍⚙️ Python Tricks — Python running in the browser
Do you imagine being able to add Python code to your web apps and have it run natively in the brwoser?
Well, this is now possible thanks to PyScript.
But what is PyScript? 👇
🐍⚙️ Python Tricks — Implementing Queues in Python
Do you know how does a priority queue look in Python?
In a priority queue, it’s an element’s priority and the insertion order that determine the ultimate position within the queue.
🧵
One of the top questions we've been getting from new Python coders is "how should I structure my Python projects?"
With this tutorial, we want to give you a dependable Python application layout reference guide that you can refer to:
🐍 Python Docker Tutorials — Docker is a containerization tool used for spinning up isolated, reproducible application environments. This page lists all of our
#Python
Docker tutorials
Python 3.12 will include a more intuitive and consistent f-strings.
Thanks to PEP-701, the goal is to guarantee that f-strings can include all valid Python expressions, including those with:
Backslashes
The same type of quote
Unicode escape sequences
Multiline expressions
🐍⚙️ Python Tricks — Ever needed to implement a Singleton in Python?
Here’s an example of coding a Singleton class with a .__new__() method that allows the creation of only one instance at a time
.__new__() checks the existence of previous instances cached on a class attribute
🐍⚙️ Python Tricks — Running code from a string input
Python’s built-in exec() function allows you to execute any piece of Python code. With this function, you can execute dynamically generated code. Usually, it’s a string.
A few considerations about Exec() 👇
🐍📰 In this tutorial, you'll learn what APIs are and how to consume them using Python. You'll also learn some core concepts for working with APIs and see a few examples of real-life APIs and how to consume them.
#python
🐍⚙ Python Tricks - Working with IP Addresses
Use Python and a few lines of code to calculate the number of addresses in a network.
But this is not the only operation the ipaddress module from the standard library gives you 👇
🐍⚙️ Python Tricks — Running external processes
Need to run an external app or process from your Python code?
This is made possible subprocess with the built-in subprocess module.
Let's talk about this module 👇
🐍🔖 Advanced Python Tutorials — Here you'll find Python tutorials that teach you advanced concepts so you can be on your way to become a master of the Python programming language
🐍 Data Visualization With Python 📈 — In this learning path, you'll see how you can use Python to turn your data into clear and useful visualizations so that you can share your findings more effectively
#python
#learnpython
🐍 It's almost weekend! Want to learn how to create a RESTful API from scratch?
Check this free three-part tutorial series with the Flask Framework.
You'll also test your API with Swagger UI API documentation.
🧵
🐍⚙️ Python Tricks — Publishing your Python Package
To prepare your Package for publication on PyPI, you need to provide some information about it.
You can use a TOML file to save the configuration of your Package.
What's a TOML file? 👇
🐍⚙️ Python Tricks — Custom Python dictionaries
Creating dictionary-like classes may be a requirement in your Python career.
You can get a custom Dictionary by subclassing the UserDict from collections.
But there are other ways to get this 👇
🐍📰 Jupyter Notebook: An Introduction
In this tutorial, you learn how to get started with The Jupyter Notebook, an open source web app that you can use to create and share documents that contain live code, equations, visualizations, and text
#python
🐍⚙️ Python Tricks - Create your own iterator.
In Python, an iterator is an object that allows you to iterate over collections of data, such as lists, tuples, dictionaries, and sets.
👇