Python meliputi latihan 34
Judul: fungsi Praktek panggilan.
Analisis Program: Tidak ada.
Source Code:
#!/usr/bin/python # -*- coding: UTF-8 -*- def hello_world(): print 'hello world' def three_hellos(): for i in range(3): hello_world() if __name__ == '__main__': three_hellos()
Contoh di atas output:
hello world hello world hello world