Write a list comprehension that creates a list containing the numbers that result from the values 1 through 10 being multiplied by 1.5. That is, the list will contain the values 1.5, 3.0, 4.5, etc. through 15.0. Assign the new list to the variable nums.

Respuesta :

nums = [x*1.5 for x in range(1,11)]

print(nums)

The first line is the list comprehension and the second prints the list to the screen so you can see that it works.