4. Find the entry with the highest magnitude
Here, for the sake of brevity, I use list comprehension to collect a list of the magnitude for each earthquake and then use the built-in max function to find the maximum value:

max([entry['properties']['mag'] for entry in json_data['features'])

If you're not familiar with list comprehensions yet, this code may make more sense:

earthquakes = json_data['features'])
earthquake_magnitudes = []

for earthquake in earthquakes:
earthquake_magnitudes.append(earthquake['properties']['mag'])

printlen(earthquakes)# number of earthquakes in last dayprintmax(earthquake_magnitudes)# biggest earthquakes value