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,258FansLike
7FollowersFollow
133FollowersFollow
380FollowersFollow

Subscribe to HitXP Articles

To receive the latest updates, offers and special announcements.

Latest Articles

Evolution of life – primitive cells, complex organisms, intelligence, what next after humans?

Evolution of life from primitive life forms to complex multi cellular organisms to intelligent human species - the advent of AI raises a natural question - What next after human?

The individual human is smart, but the human species is dumb

The smart individual human has to clean up the mess created by his dumb species. Species polluted the planet, individuals are cleaning it up.

What if Dinosaurs did not go extinct 65 million years ago?

Imagine a world where dinosaurs did not go extinct, because that asteroid missed colliding with Earth. How would have life evolved then?

Bees are dying; hence, the humans will starve

The death of bee colonies across the world will lead to extinction of many plants, trees and crops, leading to acute food shortage.

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...