1list = [1, 3, 5, 7, 9]
2
3# with index
4for index, item in enumerate(list):
5 print (item, " at index ", index)
6
7# without index
8for item in list:
9 print(item)
1names = ['tom', 'john', 'simon']
2
3namesCapitalized = [capitalize(n) for n in names]
1lst = [10, 50, 75, 83, 98, 84, 32]
2
3res = list(map(lambda x:x, lst))
4
5print(res)
6