摘要:
Exercise: DESCRIPTION: This time no story, no theory. The examples below show you how to write function accum: Examples: accum("abcd") -> "A-Bb-Ccc-Dd 阅读全文
摘要:
Solition: def number(bus_stops): return sum([i[0] - i[1] for i in bus_stops]) def number(bus_stops): return sum(on - off for on, off in bus_stops) 阅读全文
摘要:
DESCRIPTION: Who remembers back to their time in the schoolyard, when girls would take a flower and tear its petals, saying each of the following phra 阅读全文
摘要:
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. E 阅读全文
摘要:
Exercise: In a factory a printer prints labels for boxes. For one kind of boxes the printer has to use colors which, for the sake of simplicity, are n 阅读全文