Discuss / Python / 作业

作业

Topic source

1

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

for x in L:

print('Hello ,', x)

2

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

n=0

while n<3:

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

    n=n+1

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

n=0

while n<3:

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

    n=n+1


  • 1

Reply