Awesome Python tricks you don’t know about!

Manpreet Singh
4 min readOct 30, 2021

Welcome back! Python is an awesome programming language that can practically build anything, if you don’t know anything about this language, check out the link below:

So, let’s talk about some awesome tricks that you might not know about for Python!

Creating Multiple Variables In One Line

If you ever wanted to assign multiple variables in one line, well, there is actually a way to do this, let’s look at the following example:

ted,al,sam = “one”, “two”, “three”

You can see we can actually import multiple different variables as long as the inputs are separated with a comma! You can also check out the outputs like this:

Finding Differences In a List

Next up, an awesome functionality with Python is being able to find the differences in a list. Now…

--

--