summary refs log blame commit diff stats
path: root/python/raindrops/raindrops.py
blob: f1cee2e53ab9a150615874ca6a6d3b77091ee636 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                            
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