fork download
  1. 리스트 = ['dog', 'cat', 'parrot']
  2. for fir in 리스트:
  3. print(fir[:1])
Success #stdin #stdout 0.11s 14068KB
stdin
Standard input is empty
stdout
d
c
p