For those of you who have read my previous article about my desire to create a chess game based on the stockfish chess engine, this […]
Merge two dictionaries using the Dict Union operator
In this article we will create a Python function which will merge two dictionaries using the Dict Union operator. The Dict Union operator will only […]
Write a python function that produces an array with the numbers 0 to N-1 in it
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 […]
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 […]
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 […]