In this article, we will create a python function that will produce an array with the numbers 0 to N-1 in it. For example, the […]
Create a python function to check if an integer number is divisible
In this article we will create a python function which will take in three arguments, the first one is the number which will be divided […]
Create the function which converts a given string into an md5 hash and return the value in the hexadecimal format
When you sign up for an account somewhere, some websites do not actually store your password in their databases. Instead, they will transform your password […]
Python dictionary example – return the word pattern for a given word in the form of the decimal number
In this article we will solve a python question on codewars by using the Python dictionary. Our strategy here is to use the python dictionary […]
Python for loop example – solving drone path
In this example, we will use the Python for loop with the range function to show the drone’s path by lighting up lamps on the […]
Returns a sequence of all the even characters from a string with Python
In this example, I will write a Python function that will return a sequence (index begins with 1) of all the even characters from a […]
A python module to sort a number list
This python module will help you to sort any numbers within a list, either integer or double type, or a mix of both. For example, […]
Pure list sorting with Python program
Hello and welcome back, in this Python solution article we will sort a number list with a Python function. If the function passes in an […]
Return how many times each letter shows up in the string by using an asterisk (*)
Hello people, in this article we will solve the below python problem. You receive the name of a city as a string, and you need […]
Return modified string with Python
Hello and welcome back, today I have solved another python related problem on CodeWars and would like to post the solution here. The question is […]