#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ENGG1811. Exercise on using max and argmax """ import numpy as np # %% Problem parameters # # Create a list of lists temp_array = np.array( [[ 0.3, 0.4, 0.5, 0.5, 0.1, 0.8, 0.8, 0.5, 0.0, 0.7], [ 0.2, 0.4, 0.8, 0.4, 0.8, 1.8, 0.9, 0.1, 1.4, 1.7], [ 1.1, 0.1, 0.8, 0.9, 0.5, 0.3, 0.2, 0.2, 1.1, 0.4], [ 0.4, 0.7, 0.6, 0.6, 0.4, 0.4, 0.5, 0.0, 0.1, 0.2], [ 0.2, 0.1, 0.9, 0.9, 0.3, 0.5, 0.4, 0.7, 0.2, 0.7]] ) # Each row contains readings from a thermometer # %% # Put your answers below here: # Q1: What is the maximum temperature in each thermometer? # Q2: Consider the data in the 2nd column, what is the maximum temperature # and from which thermometer was it recorded? You can assume that we # label the thermometers using indices 0, 1, 2, 3 and 4.