How to do Binary Addition in Python
The challenge
Implement a function that adds two numbers together and returns their sum in binary. The conversion can be done before or after the …
Read Article →In-depth guides, insights, and best practices for modern software engineering
Implement a function that adds two numbers together and returns their sum in binary. The conversion can be done before or after the …
Read Article →You have successfully written your pandas Dataframe to an Excel file, but when you open it, all the columns are squashed up against each other.
There …
Read Article →You will be given an array of numbers. You have to sort the odd numbers in ascending order while leaving the even numbers at their …
Read Article →Create a function that returns the sum of the two lowest positive numbers given an array of minimum 4 positive integers. No floats or …
Read Article →Implement the function unique_in_order which takes as argument a sequence and returns a list of items without any elements with the same …
On Linux, you can change the hostname by using the hostnamectl command.
sudo hostnamectl set-hostname …
Read Article →
Once you have a Docker container, it is really simple to deploy containers to Kubernetes.
kubectl provides a fantastic way …
Given a string, replace every letter with its position in the alphabet.
If anything in the text isn’t a letter, ignore it and …
Read Article →You are given a string of space-separated numbers and have to return the highest and lowest number.
Example:
high_and_low("1 2 3 4 …
Read Article →
Implement a difference function, which subtracts one list from another and returns the result.
It should remove all values from list a, …
In this challenge, your function receives an array of integers as input. Your task is to determine whether the numbers are in ascending …
Read Article →Given a string, capitalize the letters that occupy even indexes and odd indexes separately, and return as shown below. Index `` will be …
Read Article →