Latest web development tutorials

Python meliputi latihan 32

Python 100 Li Python 100 Li

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

Python 100 Li Python 100 Li