Discuss / Python / 作业

作业

Topic source

Gnayizgnaw

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

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

n = 0

while n < 3:

   print('Hello, %s' %L[n])

   n = n + 1

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

for name in L:

   print('Hello, %s' %name)


  • 1

Reply