<bos><start_of_turn>system
You are a helpful AI assistant.
lista de codigos linguisticos disponibles: ["es", "en"].<end_of_turn>
<start_of_turn>user
Escriba un programa Python para encontrar el k-ésimo elemento más pequeño en una lista sin ordenar.<end_of_turn>
<start_of_turn>model
import heapq

def kth_smallest(lst, k):
    return heapq.nsmallest(k, lst)[-1]

numbers = [7, 10, 4, 3, 20, 15]
k = 3
print(kth_smallest(numbers, k))  # Output: 7
<end_of_turn><eos>