Real Python Profile Banner
Real Python Profile
Real Python

@realpython

Followers
244,013
Following
167
Media
5,046
Statuses
70,611

Online #Python Training & Expert Community: Tutorials, Video Courses, Books, Quizzes...and More! Join 3,000,000 Monthly Readers at

Joined August 2012
Don't wanna be here? Send us removal request.
Explore trending content on Musk Viewer
Pinned Tweet
@realpython
Real Python
6 years
🐍💌 Python's list comprehensions are awesome! (Get the full series at )
Tweet media one
166
650
3K
@realpython
Real Python
6 years
"What's the most used language in programming?" "Profanity."
8
792
2K
@realpython
Real Python
9 months
🐍 Build Physical Projects With Python on the Raspberry Pi — #python
Tweet media one
11
255
2K
@realpython
Real Python
2 years
Emulate a progress bar on the command line with a few lines of Python code. 🐍 🚀
Tweet media one
23
221
2K
@realpython
Real Python
5 years
❤ It doesn't matter, love is love.
Tweet media one
27
505
2K
@realpython
Real Python
5 years
Don't do it...
Tweet media one
19
512
1K
@realpython
Real Python
2 years
Python 3.11 is being released today. What is your favorite feature of this version?
48
199
1K
@realpython
Real Python
5 years
Future problems...
Tweet media one
15
362
1K
@realpython
Real Python
5 years
So many hours lost...
Tweet media one
15
294
863
@realpython
Real Python
5 years
Wait a minute... 🤔
Tweet media one
6
228
787
@realpython
Real Python
5 years
⏳🤔💭
Tweet media one
20
238
739
@realpython
Real Python
5 years
🤦‍♂️🤦‍♀️
Tweet media one
3
116
546
@realpython
Real Python
2 years
Upgrade to Python 3.11 🐍 now, Yay or Nay?
Tweet media one
26
62
540
@realpython
Real Python
4 years
pip install blackfriday ... try it 😉
21
61
504
@realpython
Real Python
2 years
🐍⚙️ Python Tricks — Need a timer to time part of your Python code? #python
Tweet media one
6
67
495
@realpython
Real Python
9 months
🐍 Arduino With Python: How to Get Started — #python
Tweet media one
0
113
489
@realpython
Real Python
5 years
Easy now... 🦁
Tweet media one
1
121
450
@realpython
Real Python
1 year
🐍 Advanced Visual Studio Code for Python Developers — #python
Tweet media one
9
78
427
@realpython
Real Python
2 years
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?
Tweet media one
9
61
424
@realpython
Real Python
2 years
🐍 Learn how to send emails using Python — #python
Tweet media one
4
87
394
@realpython
Real Python
2 years
🐍⚙️ 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? 👇
Tweet media one
7
90
393
@realpython
Real Python
3 years
🐍 How to Publish an Open-Source Python Package to PyPI — #python
Tweet media one
2
85
383
@realpython
Real Python
2 years
🐍⚙️ 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. 🧵
Tweet media one
4
69
373
@realpython
Real Python
2 years
🐍📰 Advanced Visual Studio Code for Python Developers — #python
Tweet media one
5
57
367
@realpython
Real Python
5 years
Do NOT try this at home!
Tweet media one
14
124
353
@realpython
Real Python
3 years
🐍 How to Stand Out in a Python Coding Interview — #python
Tweet media one
5
85
358
@realpython
Real Python
1 year
🐍📰 Python Class Constructors: Control Your Object Instantiation — #python
Tweet media one
1
52
351
@realpython
Real Python
6 years
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:
5
119
349
@realpython
Real Python
10 months
🐍 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
3
86
346
@realpython
Real Python
6 years
An SQL query walks into a bar...
Tweet media one
11
127
339
@realpython
Real Python
9 months
🐍 Download multiple files from the internet in parallel using Requests Library and a few lines of Python code. 🚀 Happy Coding!
Tweet media one
1
73
333
@realpython
Real Python
10 months
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
Tweet media one
8
52
335
@realpython
Real Python
2 years
🐍⚙️ 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
Tweet media one
7
63
333
@realpython
Real Python
2 years
🐍⚙️ 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() 👇
Tweet media one
7
58
329
@realpython
Real Python
5 years
😲😴
Tweet media one
4
92
329
@realpython
Real Python
5 years
😫😴💤
Tweet media one
9
109
323
@realpython
Real Python
2 years
🐍 Python Basics: Paperback Now Available! — #python
Tweet media one
0
49
304
@realpython
Real Python
1 year
🐍📰 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
4
63
313
@realpython
Real Python
2 years
🐍⚙ 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 👇
Tweet media one
2
55
310
@realpython
Real Python
1 year
🐍📰 A First Look at PyScript: Python in the Web Browser — #python
Tweet media one
4
63
305
@realpython
Real Python
2 years
🐍📺 Raising and Handling Python Exceptions [Video] — #python
Tweet media one
2
60
303
@realpython
Real Python
1 year
🐍📰 Generate Images With DALL·E 2 and the OpenAI API — #python
Tweet media one
3
59
304
@realpython
Real Python
5 years
Tweet media one
4
144
295
@realpython
Real Python
2 years
🐍⚙️ 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 👇
Tweet media one
8
54
297
@realpython
Real Python
2 years
🐍🔖 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
1
59
289
@realpython
Real Python
5 years
Ah, the old Python packaging issue.
Tweet media one
7
68
283
@realpython
Real Python
6 years
The struggle is real
Tweet media one
5
92
274
@realpython
Real Python
5 years
😲🌔
Tweet media one
11
92
277
@realpython
Real Python
3 years
🐍 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
0
58
281
@realpython
Real Python
2 years
Python Libraries for Cleaner Code #python
1
59
276
@realpython
Real Python
5 years
❤ Python
Tweet media one
5
63
281
@realpython
Real Python
1 year
🐍📰 Python Timer Functions: Three Ways to Monitor Your Code — #python
Tweet media one
3
45
275
@realpython
Real Python
9 months
🐍 Python '!=' Is Not 'is not': Comparing Objects in Python — #python
Tweet media one
2
36
274
@realpython
Real Python
3 years
🐍 A Guide to the Newer Python String Format Techniques — #python
Tweet media one
4
49
272
@realpython
Real Python
2 years
Pytest for Beginners #python
1
60
268
@realpython
Real Python
2 years
🐍 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. 🧵
4
49
269
@realpython
Real Python
5 years
Oh look, squirrel!
Tweet media one
3
73
270
@realpython
Real Python
5 years
It's an algorithm, okay!
Tweet media one
5
97
258
@realpython
Real Python
2 years
🐍⚙️ 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? 👇
Tweet media one
1
52
262
@realpython
Real Python
5 years
A bit.... off....
Tweet media one
0
55
261
@realpython
Real Python
2 years
🐍⚙️ 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 👇
Tweet media one
3
47
259
@realpython
Real Python
9 months
🐍📺 Python REST APIs With FastAPI [Video] — #python
Tweet media one
0
50
259
@realpython
Real Python
5 years
For emergency use only 🔥
Tweet media one
8
83
258
@realpython
Real Python
4 years
🚀🎧 We're launching the Real Python Podcast tomorrow, here's our trailer for the show:
6
72
259
@realpython
Real Python
3 years
pip install blackfriday ... try it 😜
13
35
256
@realpython
Real Python
6 years
🐍📰 Want to make pretty plots and graphics with Python? Check out the Matplotlib guide we just released (+ example source code):
3
91
257
@realpython
Real Python
3 years
🐍 Object-Oriented Programming in Python vs Java — #python
Tweet media one
6
64
258
@realpython
Real Python
6 months
🐍📰 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
0
66
153
@realpython
Real Python
5 years
The 5 stages of Debugging
Tweet media one
2
109
252
@realpython
Real Python
3 years
Clean Code in Python #python
1
79
244
@realpython
Real Python
5 years
1 + 1 = ...
Tweet media one
7
75
239
@realpython
Real Python
1 year
🐍⚙️ 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. 👇
Tweet media one
6
49
239
@realpython
Real Python
4 years
🐍📰 Build Physical Projects With Python on the Raspberry Pi — #python
Tweet media one
2
51
234
@realpython
Real Python
2 years
🐍📺 Python REST APIs With FastAPI [Video] — #python
Tweet media one
4
59
234
@realpython
Real Python
6 years
🐍 Challenge accepted...
Tweet media one
6
71
236