solution of this python program in colab
Attachments:
Answers
Answered by
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