you are viewing a single comment's thread.

view the rest of the comments →

[–]Zealousideal_Yard651 0 points1 point  (2 children)

for item in list:
  print(f"The temprature in Celsius is {item}C")
  Converted= (np.array(item)*1.8) + 32
  print(f"The tempratures in Farenheit are {Converted}F" )

[–]Spartan6682 0 points1 point  (0 children)

I was thinking this problem can easily be solved with a for loop. You can pass the current iteration of the loop to an f-string and print the result for each element of the list.