I have a list of numbers and I have to use a function to display them in celsius, they are in fahrenheit now.
nums = [30,34,40,36,36,28,29,32,34,44,36,35,28,33,
If you have a list the_list and you want to apply a function f to each element, creating a new list of the results:
the_list
f
new_list = [f(x) for x in the_list]