L=['bart','Lisa','Adam'] for x in L: print('Hello,%s!'% x)
L = ['Bart', 'Lisa', 'Adam'] n=len(L) while n>0: n=n-1 a='Hello,'+ L[n]+'!' print(a)
Sign in to make a reply
Sarthly
L=['bart','Lisa','Adam'] for x in L: print('Hello,%s!'% x)