Discuss / Python / 循环打印hello,XXX

循环打印hello,XXX

Topic source

去鸭冲鸭

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

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

for i in L:

    print("hello,",i,"!")


  • 1

Reply