PROGRAMMING FUNDAMENTAL
วันอังคารที่ 22 กันยายน พ.ศ. 2558
[LAB5-Draft] Display element of array and index
def setup():
n = [5,8,7,5,3,2,9]
print(n)
print("First =",n[0])
print("Second =",n[1])
print("Third =",n[2])
print("Fourth =",n[3])
print("Fifth =",n[4])
print("sixth =",n[5])
print("seventh =",n[6])
setup()
ไม่มีความคิดเห็น:
แสดงความคิดเห็น
บทความใหม่กว่า
บทความที่เก่ากว่า
หน้าแรก
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)
ไม่มีความคิดเห็น:
แสดงความคิดเห็น