Joined January 2022
67 Photos and videos
adada.py retweeted
31 Mar 2025
This could be your last RT, don’t neglect any good deed
20
4,997
11,446
236,972
In the code below is a Python function that take a list of numbers as an input and then filters out the prime numbers in the list.
1
1
84
adada.py retweeted
As a beginner in Python programming, I am sure you have heard a lot about *args and **kwargs. So what exactly are they? A thread🧵
1
1
1
138
Hi all! Just recovered my account after it was hacked. Back to posting Python stuff. See you soon
41
adada.py retweeted
30 Mar 2024
Do you know that you can actually live a debt-free life? Yes, you really can!
1
1
64
adada.py retweeted
29 Mar 2024
Self-discipline isn't about depriving yourself; it's about empowering yourself. It's the fuel that drives you towards your goals, keeps you focused amidst distractions, and ultimately leads to personal growth and success. Cultivate it!
5
4
86
adada.py retweeted
Lists become one string Joining, mapping, and uniting Python transformation pythonquicky.com/lists-to-st…
Here, I tried to generate a single string from two lists. Is there a better way of doing this? #Python #100DaysOfCode #pythonprogramming #coding
1
1
67
Python is the sweetheart of the programming world. Prove me wrong!
3
58
As a beginner in Python programming, I am sure you have heard a lot about *args and **kwargs. So what exactly are they? A thread🧵
1
1
1
138
Similarly, the keyworded **kwargs arguments allows the user to pass a variable number of keyworded arguments to a function. For instance, you can pass a dictionary of arguments to a function and unpack them using **kwargs. Check the example below:
1
50
Overall, *args and **kwargs can be incredibly useful when working with functions that take a variable number of arguments. Happy coding! 🚀
38
Do you know there is dictionary comprehension in Python, which works just like list comprehension? It helps create a dictionary with one line of code. Take a look at these two code snippets. One uses traditional for loop and the other uses comprehension. Which one is easier?
2
95
List comprehension is a game-changer in Python! With just one line of code, you can create, filter, and transform lists. Check these two examples; the first one the traditional way, the second one using list comprehension.
3
244
Python programming has become the most in-demand skill in the tech industry. Its versatility, readability, and ease of use make it a top choice for developers. If you're looking to learn a new language, start with Python! You won't regret it. #python #programming #techskills
4
165
Python decorators. What is a decorator? Let's take 5 minutes and demystify these complex-but-powerful undervalued functions:
1
1
4
545
Decorators are incredibly versatile and powerful tools in Python. They enable us to separate cross-cutting concerns such as logging, caching, and security from core business logic, leading to cleaner, more modular, and maintainable code.
1
1
64
By understanding the basics of decorators, we can leverage this powerful pattern to make our code more efficient and effective.9
1
54