paint-brush
Python Tricks 101by@gauthamsanthosh
73,164 reads
73,164 reads

Python Tricks 101

by Gautham SanthoshJuly 31st, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

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

Company Mentioned

Mention Thumbnail
featured image - Python Tricks 101
Gautham Santhosh HackerNoon profile picture

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 .

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, DM me at https://twitter.com/gauthamzzz.

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