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.
FacebookLike
InstagramFollow
PinterestFollow
RSS FeedSubscribe
Sound CloudFollow
TwitterFollow
YoutubeSubscribe

Latest Articles

Online Education should be interactive and innovative – Fun to Learn

For online education to succeed for smaller classses - it should be as interesting as cartoons. Online education cant succeed unless it is more interesting, interactive and innovative than offline schooling.

The Complete List of Dhatus – Sanskrit Root Words and their English meaning

A complete list of all dhatus (root words or verb roots) in Sanskrit dictionary and their meanings with corresponding IPA transliteration.

Sanskrit Lesson 4 – Word Creation Magic using Dhatus

Learn how easy it is to create new words in Sanskrit using root words called Dhatus. This simple process of Sanskrit grammar powers the entire language.

The Secret Role of Karma in Mahabharata

The seeds of Mahabharata were sown long back Duryodhana or Dhritarashtra were born. The story of Kaurvas and Pandavas is only the second half of the cycle of Karma. So what is the first half?

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

Science behind the mysterious power of Ganges river. The reason why piligrims take the holy water of Ganga to their places and add it to local ponds, wells and lakes across India.

Download HitXP Mobile App on Google Play

Get it on Google Play