In [1]:
symbols = list('aeiou1234567890')
symbols
Out[1]:
In [2]:
%%timeit
ord_list = []
for i in symbols:
ord_list.append(ord(i))
In [4]:
%%timeit
ord_list1 = [ord(i) for i in symbols]
In [ ]: