#python
Read more stories on Hashnode
Articles with this tag
Make a function accept any number of arguments by using *args and **kwargs · In Python, both *args and **kwargs mean that a function can accept any...
The many ways of removing duplicates from a list in Python · In Python list, remove duplicates by: char_list = ["a", "a", "a", "b", "c"] char_list =...
Easily convert a video to a GIF using Tkinter and Moviepy. · To create a video to gif converter, this is all the code you need: from moviepy.editor...
You can replace for-loops with one-liner expressions in Python. A one-liner for loop is made possible by utilizing comprehensions. Python supports...
Here is a list of useful tips and "tricks" I love to use with Python. Learn these and impress your friends and colleagues. This list is in no...