Last active
April 30, 2020 16:08
-
-
Save henriquebastos/0d3e14ee21fcd5d265138dfd7805522e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
01. donuts | |
Dado um contador inteiro do numero de donuts, retorne uma string | |
com o formato 'Number of donuts: <count>' onde <count> é o numero | |
recebido. Entretanto, se o contador for 10 ou mais, use a palavra 'many' | |
ao invés do contador. | |
Exemplo: donuts(5) retorna 'Number of donuts: 5' | |
e donuts(23) retorna 'Number of donuts: many' | |
""" | |
def donuts(count): | |
return | |
def test_donuts(): | |
assert donuts(4) == 'Number of donuts: 4' | |
assert donuts(9) == 'Number of donuts: 9' | |
assert donuts(10) == 'Number of donuts: many' | |
assert donuts(99) == 'Number of donuts: many' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tem um espaço a mais na linha
14
😛