Skip to content

Category Archives: Python Programs

Google Places API Web Service allow the user to query for place information on a variety of categories, such as establishments, prominent points of interest,… Read More
Given a time in 12-hour AM/PM format, convert it to military (24-hour) time. Note : Midnight is 12:00:00 AM on a 12-hour clock and 00:00:00… Read More
For the given sentence as input, censor a specific word with asterisks ‘ * ‘. Example :   Input : word = “computer” text = “GeeksforGeeks is a… Read More
Openpyxl is a Python library for reading and writing Excel (with extension xlsx/xlsm/xltx/xltm) files. The openpyxl module allows Python program to read and modify Excel… Read More
Python is a very popular language when it comes to data analysis and statistics. Luckily, Python3 provide statistics module, which comes with very useful functions… Read More
Geocoding is the process of converting addresses into geographic coordinates like latitude and longitude, which can be used to mark position on map.To use the… Read More
Given a list of integers, the task is to find N largest elements assuming size of list is greater than or equal o N. Examples… Read More
Tic-tac-toe is a very popular game, so let’s implement an automatic Tic-tac-toe game using Python. The game is automatically played by the program and hence,… Read More
A string is given, and you have to find all the words (substrings separated by a space) which are greater than the given length k.… Read More
Python doesn’t provide any inbuilt method to easily convert floating point decimal numbers to binary number. So, Let’s do this manually. Approach : To convert… Read More
Python doesn’t support any inbuilt function to easily convert floating point decimal numbers to octal representation. Let’s do this manually.   Approach : To convert… Read More
Given a list of integers with duplicate elements in it. The task to generate another list, which contains only the duplicate elements. In simple words,… Read More
Minkowski distance is a metric in a normed vector space. Minkowski distance is used for distance similarity of vector. Given two or more vectors, find… Read More
Prerequisite: OS module in PythonIn Python3, rename() method is used to rename a file or directory. This method is a part of the os module… Read More
It says that there is always one prime number between any two consecutive natural number\’s(n = 1, 2, 3, 4, 5, …) square. This is… Read More

Start Your Coding Journey Now!