Hi I'm trying to make a program that takes as many values in celsius or fahrenheit and puts them in a list and converts them to the other value then displays the output. I'm getting stuck at applying the formula for fahrenheit to celsius to the list. Here's my code.
if temp == "F":
input_string = input('Enter Fahrenheit values for conversion to celsius separated by space ')
print("\n")
my_list = input_string.split()
print('list:', my_list)
for i in range(len(my_list)):
my_list[i] = int(my_list[i])
print("These temperatures in Celsius are...: ", (x - 32) * 5/9 for x in [my_list],)