Python Tricks 101 by@gauthamsanthosh

Python Tricks 101

July 31st 2018 71,510 reads
Read on Terminal Reader
react to story with heart
react to story with light
react to story with boat
react to story with money
image
Gautham Santhosh HackerNoon profile picture

Gautham Santhosh

Python tips which are relatively uncommon and are very useful.

Talk is cheap show me the code

Swapping values

image

Create a single string from all the elements in list

image

Find The Most Frequent Value In A List.

image

Checking if two words are anagrams

image

Reverse a String

image

Reverse a list

image

Transpose 2d array

image

Chained Comparison

image

Chained function call

image

Copying List

image

Dictionary Get

image

Sort Dictionary by Value

image

For Else

image

Convert list to comma separated

image

Merge dict’s

image

Min and Max index in List

image

Remove duplicates from a list

image

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 .

One of the biggest use case for python is machine learning, if you are looking for a job in machine learning checkout mljobslist.com .

Thank you for reading 😅. If you like the Article give it a clap 👏.

Do consider Buying me a Coffee https://www.buymeacoffee.com/gautham , If you loved the article.

If you wish to have a chat, .

I am a Masters student at the Indian Institute of Information Technology, Allahabad. My Website http://gauthamzz.com.

react to story with heart
react to story with light
react to story with boat
react to story with money
L O A D I N G
. . . comments & more!