본문 바로가기

전체 글

(888)
Acceptable Password III Quiz> In this mission you need to create a password verification function. Those are the verification conditions: the length should be bigger than 6; should contain at least one digit, but cannot consist of just digits. Input: A string. Output: A bool. Example: is_acceptable_password('short') == False is_acceptable_password('muchlonger') == False is_acceptable_password('ashort') == False is_acce..
Acceptable Password II Quiz> In this mission you need to create a password verification function. Those are the verification conditions: the length should be bigger than 6; should contain at least one digit. Input: A string. Output: A bool. Example: is_acceptable_password('short') == False is_acceptable_password('muchlonger') == False is_acceptable_password('ashort') == False is_acceptable_password('muchlonger5') == T..
Date and Time Converter Quiz> Computer date and time format consists only of numbers, for example: 21.05.2018 16:30 Humans prefer to see something like this: 21 May 2018 year, 16 hours 30 minutes Your task is simple - convert the input date and time from computer format into a "human" format. example Input: Date and time as a string Output: The same date and time, but in a more readable format Example: date_time("01.01..
Three Words Quiz> We have prepared a set of Editor's Choice Solutions. You will see them first after you solve the mission. In order to see all other solutions you should change the filter. train Let's teach the Robots to distinguish words and numbers. You are given a string with words and numbers separated by whitespaces (one space). The words contains only letters. You should check if the string contains ..
Home Map Congratulations! Your first island has been opened. Here you'll find slightly more complicated missions, but also more islands can become available for you. Enjoy! Between Markers https://py.checkio.org/en/mission/between-markers https://developer-ankiwoong.tistory.com/872 First Word https://py.checkio.org/en/mission/first-word https://developer-ankiwoong.tistory.com/873 Split List https://py.ch..
Backward Each Word Quiz> In a given string you should reverse every word, but the words should stay in their places. Input: A string. Output: A string. Example: backward_string_by_word('') == '' backward_string_by_word('world') == 'dlrow' backward_string_by_word('hello world') == 'olleh dlrow' backward_string_by_word('hello world') == 'olleh dlrow' Precondition: The line consists only from alphabetical symbols and..
Find Quotes Quiz> Your task at hand is to find all quotes in the text. And, as is already usual, do everything as quickly as possible :) You are given a string that consists of characters and a paired number of quotation marks. You need to return an Iterable consisting of the texts inside the quotation marks. But choose only quotes with double quotation marks ("). Single quotation marks (') aren’t appropria..
Count Digits Quiz> You need to count the number of digits in a given string. Input: A Str. Output: An Int. Example: count_digits('hi') == 0 count_digits('who is 1st here') == 1 count_digits('my numbers is 2') == 1 count_digits('This picture is an oil on canvas ' 'painting by Danish artist Anna ' 'Petersen between 1845 and 1910 year') == 8 count_digits('5 plus 6 is') == 2 count_digits('') == 0 def count_digit..