import math nums = list(range(9)) nums = [math.exp(x) for x in nums] print(nums)