mirror of
https://github.com/Xevion/exercism.git
synced 2025-12-06 03:15:01 -06:00
3 lines
140 B
Python
3 lines
140 B
Python
def convert(n):
|
|
return ''.join(['Pling' if n % 3 == 0 else '', 'Plang' if n % 5 == 0 else '', 'Plong' if n % 7 == 0 else '']) or str(n)
|