Discuss / Python / while

while

Topic source

黑烏鴉

#1 Created at ... [Delete] [Delete and Lock User]

L = ['Bart', 'Lisa', 'Adam']

i=len(L)

while i>0:

print('Hello,{}!'.format(L[3-i]))

i=i-1


  • 1

Reply