Skip to content

Instantly share code, notes, and snippets.

View rahmatnazali's full-sized avatar
🏡
Working remotely from my okayest hometown

Rahmat Nazali Salimi rahmatnazali

🏡
Working remotely from my okayest hometown
View GitHub Profile
# http://python.web.id/angka-terbilang-pada-python/#.VQpS8s2sXQo
satuan = ['', 'satu', 'dua', 'tiga', 'empat', 'lima', 'enam', 'tujuh',
'delapan', 'sembilan', 'sepuluh', 'sebelas']
def terbilang_(n):
n = int(n)
if n >= 0 and n <= 11:
hasil = [satuan[n]]
elif n >= 12 and n <= 19: