Blog Posts

Calculate the Third Angle of a Triangle in Go

August 18, 2021

The challenge You are given two interior angles (in degrees) of a triangle.


Read More

Return Short Long Short in Python

August 17, 2021

The challenge Given 2 strings, a and b, return a string of the form short+long+short, with the shorter string on the outside and the longer string on the inside.


Read More

Hello, Name or World in Python

August 16, 2021

The challenge Define a method hello that returns “Hello, Name!” to a given name, or says Hello, World!


Read More

Add Length to Strings in Python

August 15, 2021

The challenge What if we need the length of the words separated by a space to be added at the end of that same word and have it returned as an array?


Read More

How to Reversing Words in a String in Python

August 14, 2021

The challenge Write a function that reverses the words in a given string.


Read More

How to Remove Duplicates from List in Python

August 13, 2021

The challenge Define a function that removes duplicates from an array of numbers and returns it as a result.


Read More

How to Format Dollars and Cents in Python

August 12, 2021

The challenge The company you work for has just been awarded a contract to build a payment gateway.


Read More

Return `5` without any numbers in Python

August 11, 2021

The challenge Write a function that always returns 5 Sounds easy right?


Read More

How to Generate Range of Integers in Python

August 10, 2021

The challenge Implement a function named generateRange(min, max, step), which takes three arguments and generates a range of integers from min to max, with the step.


Read More

Blue/Green Deployment Techniques in AWS

August 9, 2021

What are Blue/Green Deployments? “Blue/Green Deployments” is a software deployment methodology.


Read More

How to Calculate Powers of 2 in Python

August 8, 2021

The challenge Complete the function that takes a non-negative integer n as input, and returns a list of all the powers of 2 with the exponent ranging from 0 to n (inclusive).


Read More

How to Get Planet Name By ID in Python

August 7, 2021

The challenge Create a function that takes in an id and returns the planet name.


Read More

How to Make a Directory if Not Exists in Python

August 6, 2021

If you want to create a directory in Python, but only if it doesn’t exist, you have the following option.


Read More

Square(n) Sum in Python

August 5, 2021

The challenge Complete the square sum function so that it squares each number passed into it and then sums the results together.


Read More

How to Fill an Array in Python

August 4, 2021

The challenge We want an array, but not just any old array, an array with contents!


Read More

How to Fix the ‘Bad Interpreter’ Error from AWS and Python 3.7

August 3, 2021

This error often looks something like: .zshrc: /usr/local/bin/aws: bad interpreter: /usr/local/opt/python/bin/python3.


Read More

Retrieve records from MSSQLServer in Python

August 2, 2021

The below Python code will create a connection to a MSSQLServer instance, and retrieve data from it back into a variable called tblResults.


Read More

How to Remove Trailing Zeroes in Python

August 1, 2021

The challenge Numbers ending with zeros are boring. They might be fun in your world, but not here.


Read More

How to use Profilers in Python

July 31, 2021

When you have performance problems in your Python application, you can use a Profiler to help you.


Read More

If you can’t Sleep, just count Sheep in Python

July 30, 2021

The challenge Given a non-negative integer, 3 for example, return a string with a murmur: "1 sheep.


Read More