Python Tricks 101🐍

Home / Developer Tools / Python Tricks 101🐍
Python Tricks 101🐍

Python tips which are relatively uncommon and are very useful.

Talk is cheap show me the code

Swapping values

Create a single string from all the elements in list

Find The Most Frequent Value In A List.

Checking if two words are anagrams

Reverse a String

Reverse a list

Transpose 2d array

Chained Comparison

Chained function call

Copying List

Dictionary Get

Sort Dictionary by Value

For Else

Convert list to comma separated

Merge dict’s

Min and Max index in List

Remove duplicates from a list

If you think i should i add anymore or have suggestions please do comment. i’ll keep on updating this blog.

Most of the tricks and tips are taken from PyTricks and a few blogs .

Source: hackernoon