Computer Science, asked by venkataramanablr2020, 5 hours ago

solution of this python program in colab​

Attachments:

Answers

Answered by Kimi0FPS
1

Answer:

max_temp= temperatures.index(max(temperatures))  # Get the maximum temperature index

min_temp= temperatures.index(min(temperatures))  # Get the minimum temperature index

temperatures[max_temp], temperatures[min_temp] = temperatures[min_temp], temperatures[max_temp]  # Swapping the two temperatures

Explanation:

Similar questions