L = ['Bart','Lisa','Adam'] n=0 while n<3: print('hello %s'%L[n]) n=n+1
L = ['Bart','Lisa','Adam'] for x in L: print('hello,',x,'!')
Sign in to make a reply
何苦来哉ooo
-- coding: utf-8 -
L = ['Bart','Lisa','Adam'] n=0 while n<3: print('hello %s'%L[n]) n=n+1
-- coding: utf-8 -
L = ['Bart','Lisa','Adam'] for x in L: print('hello,',x,'!')