How to Convert a Hex String to RGB in Python
The challenge
When working with color values it can sometimes be useful to extract the individual red, green, and blue (RGB) component values for a …
Read Article →403 articles about python development, tools, and best practices
When working with color values it can sometimes be useful to extract the individual red, green, and blue (RGB) component values for a …
Read Article →Write a hashtag generator function that takes a string and returns a #HashCodeString of it.
The hashtag generator should perform the …
Read Article →Write an algorithm that takes an array and moves all of the zeros to the end, preserving the order of the other elements.
move_zeros([1, …
Read Article →
Write a regular expression that validates the gregorian date in the format “DD.MM.YYYY”
Correct date examples: …
Read Article →Write your own implementation of the built-in split
function in Python.
The following rules must be adhered to:
Create a domain name validator mostly compliant with RFC 1035, RFC 1123, and RFC 2181
The following rules apply:
Your task is to write a regular expression (regex) that will match a string only if it contains at least one valid date, in the format …
Read Article →You need to write regex that will validate a password to make sure it meets the following criteria:
The goal of this challenge is to write a function that takes two inputs: a string and a character. The function will count the number of …
Read Article →Write a nickname generator function, nicknameGenerator
that takes a string name as an argument and returns the first 3 or 4 letters as a …
This function should test if the factor
is a factor of base
.
Return true
if it is a factor or false
if it is not.
Factors are numbers …
!--> Read Article →Write a function that checks if a given string (case insensitive) is a palindrome.
Option 1:
def …
Read Article →