Created
March 22, 2017 23:30
-
-
Save henriquebastos/57b1c581c61a2d116f948f494c5fa5bc to your computer and use it in GitHub Desktop.
Código do Coding Dojo p/ Calouros do turno da manhã na Unilasalle
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 | |
# Código do Coding Dojo p/ Calouros do turno da manhã na Unilasalle | |
# 21/03/2017 | |
def robo(num): | |
msg=num | |
if num==3: | |
msg='fizz' | |
if num==5: | |
msg='buzz' | |
return msg | |
assert robo(1)==1 | |
assert robo(2)==2 | |
assert robo(4)==4 | |
assert robo(3)== 'fizz' | |
assert robo(5)== 'buzz' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment