diff --git a/Prayogo_Aries_Munandar_G_231_16_0044UAS_sore.txt b/Prayogo_Aries_Munandar_G_231_16_0044UAS_sore.txt new file mode 100644 index 0000000..08d0935 --- /dev/null +++ b/Prayogo_Aries_Munandar_G_231_16_0044UAS_sore.txt @@ -0,0 +1,18 @@ + def Tampil_Tuple(tuple): +- for i in range(len(tuplee)): +- print(i+1,'.',tuplee[i]) ++ for i in range(len(tuple)): ++ print (i+1,".",tuple[i]) + + def Tampil_List(list): +- for i in listing: ++ for i in list: + print(i) + + def Utama(): +@@ -15,4 +15,4 @@ def Utama(): + print("Daftar Nama Dosen FTIK USM ") + Tampil_Tuple(tuple) + +-Utama(args) ++Utama() #parameter args dihilangkan diff --git a/UAS_sore.py b/UAS_sore.py deleted file mode 100644 index 719a30d..0000000 --- a/UAS_sore.py +++ /dev/null @@ -1,18 +0,0 @@ -def Tampil_Tuple(tuple): - for i in range(len(tuplee)): - print(i+1,'.',tuplee[i]) - -def Tampil_List(list): - for i in listing: - print(i) - -def Utama(): - list=[1,2,3,4,5,6,7,8,9] - tuple=('Aria Hendrawan','Basworo Ardi Pramono','Khoirudin','April Firman Daru','Whisnumurti') - print("\nBerikut adalah angka keberuntungan saya ") - Tampil_List(list) - print("\n-----------------------------------------") - print("Daftar Nama Dosen FTIK USM ") - Tampil_Tuple(tuple) - -Utama(args)