Generate random strings of fixed length in Python.
import random 
import string

def generate_random_string(length):
    return ''.join(random.choices(string.ascii_letters + string.digits,k=length))

generate_random_string(8); //Output: 'K5h5get6'