Kundan Singh

Kundan Singh

How to Get the Pythonpath in Shell?

How to Get the Pythonpath in Shell?

Standard-library directories and site-packages still appear in the example’s sys.path with PYTHONPATH unset. For me, the sharper surprise is the blank entry: it represents the current working directory for this -c invocation. Take an importable .py file as a concrete…

Python Read JSON File and Modify

Python Read JSON File and Modify

One of the most popular formats for storing data is JSON, which is also known as JavaScript Object Notation. The data is stored in key-value pairs, much like the Python dictionary. It has a fast processing rate and is lightweight,…