primeiro commit com exercicios de Exercism realizados até esta data
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
def convert(number):
|
||||
raindrop_sound: str = ""
|
||||
if not number % 3:
|
||||
raindrop_sound += "Pling"
|
||||
if not number % 5:
|
||||
raindrop_sound += "Plang"
|
||||
if not number % 7:
|
||||
raindrop_sound += "Plong"
|
||||
if raindrop_sound == "":
|
||||
raindrop_sound = str(number)
|
||||
return raindrop_sound
|
||||
Reference in New Issue
Block a user