Code

How to check a value against multiple variables in Python?

The most readble and simplest way in Python to check if a given value exists in any of the multiple variables.

Bulk rename all files in a folder in Ubuntu replacing part of file name

Ubuntu shell command to bulk rename files in a folder by replacing part of the file name (a subtring) with another string.

How to convert base64 encoded text (audio / image) data into binary (wav / mp3) file?

Commands to convert base64 encoded text file (audio, image, video, etc) into corresponding binary file in Ubuntu, Linux, Mac and Windows.

Convert Python Dictionary or List of Dictionaries to XML string

Python Code snippet to convert a dictionary or a list of dictionaries into a valid XML string.

How to pretty print a JSON file in Python?

Pretty printing makes a json file visually appealing and easy to edit. If you have a JSON file that is compact or not visually appealing, you can easily convert it in Python to a pretty print form.
4,247FansLike
12FollowersFollow
158FollowersFollow
376FollowersFollow

Subscribe to HitXP Articles

To receive the latest updates, offers and special announcements.

Latest Articles

Earth Hour increases Carbon Emissions – Symbolism gone wrong

Earth Hour - switching off lights en masse for an hour actually increases pollution not decrease it. Say No to this symbolism gone wrong and save energy.

An Efficient Strategy to fight Corona Virus

By setting up local police station level online delivery networks for essential items like grocery, medicines - the need for general public to come out of their homes can be removed.

Rising pollution can cause Pandemics deadlier than Corona Virus

Rising pollution can expose ancient killer microbes that may cause pandemics more deadlier than Corona. Melting Ice Sheets can resurrect killer agents of the past.

Corona Virus, SARS – Why are new viruses increasingly originating from China?

The reason why new strains of deadly viruses are emerging from China. Viruses like coronavirus and SARS should be stopped from evolving and spreading to prevent another global pandemic.

Popular Articles

Takshashila – World’s Oldest University

More than 2700 years back a huge university existed in that ancient India where over 10,500 students from all across the world came for...

Grahas are not Planets – Nava Graha is not the same as Nine Planets

The difference between Planets and Grahas. Why are Sun and Moon included in the list of Navagrahas? Isn't it true that Rahu and Ketu do not exist? What about Earth?

Place Value, not Zero is most important invention of ancient Indian Mathematicians

The most important contribution of ancient India to mathematics was not zero but the place value system or positional notation system.

The Sacred Secrets of Ganga

I am the shark among the fishes, and the Ganges among the rivers - Krishna in Bhagavadgita In his book Discovery of India, Jawaharlal Nehru...