Python meliputi latihan 32
Judul: membalikkan nilai output urutan daftar.
Analisis Program: Tidak ada.
Source Code:
#!/usr/bin/python # -*- coding: UTF-8 -*- a = ['one', 'two', 'three'] for i in a[::-1]: print i
Contoh di atas output:
three two one
Judul: membalikkan nilai output urutan daftar.
Analisis Program: Tidak ada.
Source Code:
#!/usr/bin/python # -*- coding: UTF-8 -*- a = ['one', 'two', 'three'] for i in a[::-1]: print i
Contoh di atas output:
three two one