Multiples of 3 and 5 with Python
The challenge
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 →403 articles about python development, tools, and best practices
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 →Let’s make it so Bob never misses another interesting number. We’ve hacked into his car’s computer, and we have a box …
!--> Read Article →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 →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 →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: