
    Write a function that finds the ID of the most affordable parking space from a list of parking space data, where each space is represented by a pair of (Space_ID, Current_Price). Return the Space_ID of the parking spot that currently has the lowest price rate during dynamic pricing periods.
    

    
from operator import itemgetter

def index_minimum(test_list):
    """
    Write a function that finds the ID of the most affordable parking space from a list of parking space data, where each space is represented by a pair of (Space_ID, Current_Price). Return the Space_ID of the parking spot that currently has the lowest price rate during dynamic pricing periods.
    

    """
from operator import itemgetter

def index_minimum(test_list):
    """
    Write a function that finds the ID of the most affordable parking space from a list of parking space data, where each space is represented by a pair of (Space_ID, Current_Price). Return the Space_ID of the parking spot that currently has the lowest price rate during dynamic pricing periods.
    

    """
    res = min(test_list, key=itemgetter(1))[0]
    return res