How to Move Zeros to the End in Python
The challenge
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 →
323 articles about python development, tools, and best practices
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 →
You are given two arrays a1 and a2 of strings. Each string is composed of letters from a to z. Let x be any string in the first array …
You are be given a string that has lowercase letters and numbers. Your task is to compare the number groupings and return the largest …
Read Article →