Latest web development tutorials

Python meliputi latihan 75

Python 100 Li Python 100 Li

Judul: Tenang, dianggap sebagai subjek yang sederhana.

Analisis Program: Tidak ada.

Source Code:

#!/usr/bin/python
# -*- coding: UTF-8 -*-

if __name__ == '__main__':
    for i in range(5):
        n = 0
        if i != 1: n += 1
        if i == 3: n += 1
        if i == 4: n += 1
        if i != 4: n += 1
        if n == 3: print 64 + i

Contoh di atas output:

67

Python 100 Li Python 100 Li