Discuss / Python / 习题

习题

Topic source

Bill不河蟹

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

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]) 在此插入代码

```

南宫聊

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

Using for loop.

for i in l: print('Holle,%s!'%i)


  • 1

Reply