{"text": "### Human: Generasi kata sandi acak 6 karakter panjang. ### Assistant: `` import random import string def generate_random_password ((length): \"\"\"Generate a random password of specified length.\"\"\" karakter = string.ascii_letters + string.digits + string.punctuation return ''.join(random.choice(karakter) untuk _ in range(length)) print(f'Generated password: {generate_random_password(6)}') ```"}