1.
nums = list()
2.
nums = [x for x in range(10)] # [0,1,2,3,4,5,6,7,8,9]
nums_2 = [x*2 for x in rang(10)] # [0,2,4,6,8,10,12,14,16,18]