---
# System prepended metadata

title: 第六週(0321)

---

# 第六週(0321)
迴圈追蹤
a=[3,5,7,4,6]
y=0
z=0
for x in lst:
y=y+x
if x>z:
z=x
print(x)
print(y)
print(z)

(零) 
a = 無
x = 無
y = 0
z = 0
(一) 
a = 3
x = 3
y = 3
z = 3
(二) 
a = 5
x = 5
y = 8
z = 5
(三) 
a = 7
x = 7
y = 15
z = 7
(四) 
a = 4
x = 4
y = 19
z = 7
(五) 
a = 6
x = 6
y = 25
z = 7