Всего решено: 15 задач
Максимальный уровень: 7 kyu
Профиль на Codewars
-
7-kyu/ -
exes_and_ohs.py:
Условие (EN): Check to see if a string has the same amount of 'x's and 'o's. The method must return a boolean and be case insensitive.
Комментарий: Проверка на одинаковое количество букв 'x' и 'o'.
Оригинал задачи -
isograms.py:
Условие (EN): Implement a function that determines whether a string that contains only letters is an isogram.
Комментарий: Изограмма. Проверка на наличие повторяющихся букв.
Оригинал задачи -
mumbling.py:
Условие: Для каждой буквы строки создать блок, где первая буква заглавная, остальные повторяются в нижнем регистре столько раз, как её порядковый индекс в строке (начиная с 0). Блоки объединяются через дефис (-).
Оригинал задачи -
Youre_a_square.py:
Условие (EN): Given an integral number, determine if it's a square number.
Комментарий: Проверка на идеальный квадрат.
Оригинал задачи -
list_filtering.py:
Условие (EN): In this kata you will create a function that takes a list of non-negative integers and strings and returns a new list with the strings filtered out.
Комментарий: Нужно вернуть новый список, в котором останутся только целые числа.
Оригинал задачи -
descending_order.py:
Условие (EN): 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. Essentially, rearrange the digits to create the highest possible number.
Комментарий: Из полученного числа написать цифры в обратном порядке.
Оригинал задачи -
highest_and_lowest.py:
Условие (EN): In this little assignment you are given a string of space separated numbers, and have to return the highest and lowest number.
Комментарий: Дается строка чисел, и нужно вернуть наибольшее и наименьшее число.
Оригинал задачи -
square_every_digit.py:
Условие (EN): In this kata, you are asked to square every digit of a number and concatenate them. For example, if we run 9119 through the function, 811181 will come out, because 9² is 81 and 1² is 1. (81-1-1-81)
Комментарий: Нужно возвести в квадрат каждую цифру числа и объединить их.
Оригинал задачи -
disemvowel_trolls.py:
Условие (EN): Return the number (count) of vowels in the given string. We will consider a, e, i, o, u as vowels for this Kata (but not y).
Комментарий: Счетчик гласных в строке.
Оригинал задачи -
vowel_count.py:
Условие (EN): Task is to write a function that takes a string and return a new string with all vowels removed. (This website is for losers LOL! => Ths wbst s fr lsrs LL!)
Комментарий: Удаление всех гласный из строки.
Оригинал задачи -
8-kyu/-
even_or_odd.py:
Условие (EN): Create a function that takes an integer as an argument and returns "Even" for even numbers or "Odd" for odd numbers.
Комментарий: Определение чётности числа.
Оригинал задачи -
multiply.py:
Условие (EN): This code does not execute properly. Try to figure out why.
Комментарий: Исправление функции умножения.
Оригинал задачи -
return_negative.py:
Условие (EN): In this simple assignment you are given a number and have to make it negative. But maybe the number is already negative?
Комментарий: Преобразование числа в отрицательное.
Оригинал задачи -
sum_of_positive.py:
Условие (EN): You get an array of numbers, return the sum of all of the positives ones.
Комментарий: Вычислить сумму положительных чисел в списке.
Оригинал задачи -
reversed_strings.py:
Условие (EN): Complete the solution so that it reverses the string passed into it. ('world' => 'dlrow')
Комментарий: Переворачивает переданную сроку наоборот.
Оригинал задачи -
number_to_string.py:
Условие (EN): We need a function that can transform a number (integer) into a string. (123 --> "123")
Комментарий: Преобразовать из числа в строку.
Оригинал задачи -
bool_to_yes_no.py:
Условие (EN): Complete the method that takes a boolean value and return a "Yes" string for true, or a "No" string for false.
Комментарий: Возвращает строку взависимости от типа bool.
Оригинал задачи -
square_n_sum.py:
Условие (EN): Complete the square sum function so that it squares each number passed into it and then sums the results together. ([1,2,2] => 1²+2²+2²=9)
Комментарий: Возводит все числа в квадрат и суммирует числа.
Оригинал задачи -
opposite_number.py:
Условие (EN): Very simple, given a number, find its opposite (additive inverse). (14 => -14)
Комментарий: Инвертировать число.
Оригинал задачи -
strip_first_last.py:
Условие (EN): It's pretty straightforward. Your goal is to create a function that removes the first and last characters of a string. You're given one parameter, the original string.
Комментарий: Удаляет первый и последний символ строки.
Оригинал задачи
-