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
# -*- coding:utf-8 -*- | |
def executaFizzBuzz(numero): | |
""" | |
Autor: fzmaster | |
Data: 21/12/2010 | |
Problema: Fizz Buzz | |
http://codingkata.org/katas/unit/fizz-buzz | |
Esta é a função responsável por converter múltiplos de 3 em 'fizz', múltiplos de 5 em 'buzz' e múltiplos de ambos |
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
# -*- coding:utf-8 -*- | |
def converter_numero_em_romano(numero): | |
""" | |
Código construído no primeiro coding dojo realizado na UFES. | |
Data: 18/12/2010 | |
Problema: Números romanos | |
http://codingkata.org/katas/unit/caesar-lottery |
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
import unittest | |
from welcome import * | |
class WelcomeTestCase(unittest.TestCase): | |
def test_Nome_M(self): | |
assert welcome('John', False, False) == 'Hello Mr. John' | |
def test_Nome_F(self): | |
assert welcome('Jane', True, False) == 'Hello Ms. Jane' | |
def test_Nome_S(self): |
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
import unittest | |
def nasa(tempo): | |
""" | |
Autor: fzmaster | |
Data: 21/12/2010 | |
Problema: NASA Countdown | |
http://codingkata.org/katas/unit/nasa-countdown | |
""" | |
return ' '.join(map(str, range(tempo,-1,-1))) |
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
import unittest | |
def fibonnaci(numero): | |
""" | |
Autor: fzmaster | |
Data: 22/12/2010 | |
Problema: Fibonnaci Killer | |
http://codingkata.org/katas/unit/fibonacci-killer | |
Calcular enesimo numero de Fibonnaci |
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
import unittest | |
def backward_talk(mensagem): | |
""" | |
Autor: fzmaster | |
Data: 22/12/2010 | |
Problema: Backwards Talk | |
http://codingkata.org/katas/unit/backwards-talk | |
Reverter uma String |
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
import unittest | |
import re | |
def slang(texto): | |
""" | |
Autor: fzmaster | |
Site: http://www.fzmaster.info | |
Data: 26/12/2010 | |
Problema: Teleprompter | |
http://codingkata.org/katas/unit/teleprompter |
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
import unittest | |
from enum import Enum | |
class Cinema(): | |
""" | |
Autor: fzmaster | |
Data: 28/12/2010 | |
Problema: Movie Tickets | |
http://codingkata.org/katas/unit/movie-tickets |
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
import unittest | |
def ISBN(isbn): | |
""" | |
Autor: fzmaster | |
Data: 29/12/2010 | |
Problema: Books for Mars | |
http://codingkata.org/katas/unit/mars-books | |
Calcular digito verificador do ISBN | |
""" |
OlderNewer