Discuss / Python / 循环作业

循环作业

Topic source

半碗水

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

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

for name in L:

    print('Hello, %s!' %name)

Hello, Bart!

Hello, Lisa!

Hello, Adam!


  • 1

Reply