Generate a random string containing only lowercase letters using Python.
import string 
import random

def gen_random_string(length): 
    letters = string.ascii_lowercase
    return ''.join(random.choice(letters) for i in range(length)) 

print(gen_random_string(10))