def modify_q_table(Qtable, state, value):
    """
    state == table_no, dealer_card, player_sum
    1 <= dealer_card <= 10
    0 <= player_sum <= 31
    """
    table_no, dealer_card, player_sum = state

    assert (0 <= table_no <= 3 and 1 <= dealer_card <= 10 and 0 <= player_sum <= 31)

    Qtable[table_no][player_sum][dealer_card - 1] = value
    
    return Qtable