Sign in

Cloud Platform Engineer | IITR Alumnus
Photo by Caspar Camille Rubin on Unsplash
pip install psycopg2-binary
  • Import…


Photo by Markus Spiske on Unsplash


Designed by: Author


Photo by Markus Spiske on Unsplash
pip install tqdm
from tqdm import tqdmfor…


Photo by James Harrison on Unsplash

Photo by Joshua Reddekopp on Unsplash
  1. Creating Lists in one line:
lst = [x for x in range(0,10)]
>>> print(lst)
>>> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
list_1 = [“a”, “b”, “c”, “d”]
list_2 = [1, 2, 3, 4]
dict_from_lists = dict(zip(list_1, list_2))>>> print(dict_from_lists)
{‘a’: 1, ‘b’: 2, ‘c’: 3, ‘d’: 4}
lst = [“Convert”, “List”, “To”, “String”]
st = “ “.join(lst) #join and put " " between each element
>>> print(st)
'Convert List To String'
st…


Image source: unsplash.com
ssh -i "Path\to\your\ssh_key.pem" user@hostname


Photo by Sergey Zolkin on Unsplash



Devashish Patil

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store