import random
import string
def generate_password(custom_word):
special_chars = '!@#$%^&*()_+=-'
password = custom_word + '_'
for i in range(5):
password += random.choice(string.ascii_letters)
password += random.choice(string.digits)
password += random.choice(special_chars)
return password
custom_word = 'HELLO'
password = generate_password(custom_word)
print(password)
generate_password(custom_word) that takes a custom word as input and generates a password by combining the custom word with random letters, digits, and special characters. You can customize the length and composition of the generated passwords by modifying the loop in the function.