adada.py (@pythoncodestar) header
adada.py (@pythoncodestar) profile picture

I tweet about my learning experience in coding and programming. I share useful resources to help python coding newbies improve their coding skills.

Joined January 2022
Photo by adada.py (@pythoncodestar)Photo by adada.py (@pythoncodestar)Photo by adada.py (@pythoncodestar)Photo by adada.py (@pythoncodestar)Photo by adada.py (@pythoncodestar)Photo by adada.py (@pythoncodestar)Photo by adada.py (@pythoncodestar)Photo by adada.py (@pythoncodestar)Photo by adada.py (@pythoncodestar)Photo by adada.py (@pythoncodestar)
This could be your last RT, don’t neglect any good deed
20
4,893
10
11,197
237,557
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
88
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
142
Hi all! Just recovered my account after it was hacked. Back to posting Python stuff. See you soon
43
Do you know that you can actually live a debt-free life? Yes, you really can!
1
1
65
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
88
Python is the sweetheart of the programming world. Prove me wrong!
3
60
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
142
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
51
Overall, *args and **kwargs can be incredibly useful when working with functions that take a variable number of arguments. Happy coding! 🚀
39
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
96
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
245
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
1
4
166
Python decorators. What is a decorator? Let's take 5 minutes and demystify these complex-but-powerful undervalued functions:
1
1
1
4
546
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