►
Run
for greeting in ['hello', 'hi', 'hola']: for ch in greeting: print(ch) if greeting=='hello': print("hello buddy!") else: if greeting=='hi': print("hi friend!") else: print("hola gola!")
Output