L = ['Bart', 'Lisa', 'Adam']
i = 0 while i < len(L): print('Hello,',L[i]) i += 1
s = 0 for s in range(0,len(L)): print('Hello,',L[s]) 在此插入代码
```
for i in l: print('Holle,%s!'%i)
Sign in to make a reply
Bill不河蟹
L = ['Bart', 'Lisa', 'Adam']
Using while loop.
i = 0 while i < len(L): print('Hello,',L[i]) i += 1
Using for loop.
s = 0 for s in range(0,len(L)): print('Hello,',L[s]) 在此插入代码
```