Discuss / Python / 交作业

交作业

Topic source
L=['Adam','Bert','Lisa']
for name in L:
    print('Hello',name)
L=['Adam','Bert','Lisa']
n=len(L)
while n>0:
    n=n-1
    print('Hello,%s'%L[2-n])

  • 1

Reply