#education
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...
Learn a bunch of one-liners to improve code readability · 1. One-Liner If-Else Operator Did you know that you can replace this simple if-else...
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...