One way to do it for a in b: print(a) Another one for a in b: print(a) The last one for a in b: print(a)