How to Split a String with Python
Splitting a string in Python is really easy.
You simply take a string and apply the split() method.
"Your String".split()
See some examples …
Read Article →In-depth guides, insights, and best practices for modern software engineering
Splitting a string in Python is really easy.
You simply take a string and apply the split() method.
"Your String".split()
See some examples …
Read Article →Terraform is a fantastic tool to help automate your infrastructure as code.
Quite a few times however, I have noticed a few strange issues, one of …
Read Article →Complete the solution so that it splits the string into pairs of two characters. If the string contains an odd number of characters then …
Read Article →Move the first letter of each word to the end of it, then add “ay” to the end of the word. Leave punctuation marks …
Read Article →Sheldon, Leonard, Penny, Rajesh and Howard are in the queue for a “Double Cola” drink vending machine; there are no other …
Read Article →Write a function, which takes a non-negative integer (seconds) as input and returns the time in a human-readable format (HH:MM:SS)
HH = …Your task is to create a function that turns a string into a Mexican Wave. You will be passed a string and you must return that …
Read Article →This multiples of 3 and multiples of 5 challenge is a variation of the common FizzBuzz question.
If we list all the natural numbers …
Read Article →Read Article →"7777…8?!??!", exclaimed Bob, "I missed it again! Argh!" Every time there's an interesting number coming up, he notices …
Given an array (arr) as an argument complete the function countSmileys that should return the total number of smiling faces.
Rules for a …
Read Article →Complete the method/function so that it converts dash/underscore delimited words into camel casing. The first word within the output …
Read Article →Basic instructions on how to set up an SSH server on an Ubuntu 16.04/18.04 EC2 instance.
sudo adduser testuser
Using Python, we want to convert words into numbers. In this challenge, we will explore how to convert a string into an integer.
The strings …
Read Article →Given the triangle of consecutive odd numbers:
1
3 5
7 9 11
13 15 17 19
21 23 …
Read Article →
You probably know the “like” system from Facebook and other pages. People can “like” blog posts, pictures or …
Read Article →It took the Python community a long time to move from Python 2 to Python 3. Now as we approach the possible end of Python 3 version history, we are …
Read Article →The rgb function is incomplete. Complete it so that passing in RGB decimal values will result in a hexadecimal representation being …
Read Article →Your task is to make a function that can take any non-negative integer as an argument and return it with its digits in descending order. …
Read Article →Digital root is the recursive sum of all the digits in a number.
Given n, take the sum of the digits of n. If that value has more than …
We want to create a function that will add numbers together when called in succession.
add(1)(2);
# returns 3
We also want to be able to …
Read Article →Create a function that takes a positive integer and returns the next bigger number that can be formed by rearranging its digits. For …
Read Article →As the name may already reveal, it works basically like a Fibonacci, but summing the last 3 (instead of 2) numbers of the sequence to …
Read Article →You are given three piles of casino chips: white, green and black chips:
An isogram is a word that has no repeating letters, consecutive or non-consecutive. Implement a function that determines whether a …
Read Article →