blob: f1cee2e53ab9a150615874ca6a6d3b77091ee636 (
plain) (
tree)
|
|
def convert(number):
result = ""
if number % 3 == 0:
result += "Pling"
if number % 5 == 0:
result += "Plang"
if number % 7 == 0:
result += "Plong"
if len(result) == 0:
result = str(number)
return result
|