I made a password generator, and now I need to make it copy the generated password when pressing the key "C", I've tried "input("press c to copy") but it didn't work. any ideas?
import random
print("Welcome to the password generator")
input("press enter to generate a password : ")
def password(length):
    pw = str()
    characters = "abcdefghijklmnopqurstuvwxyz"
    numbers = "123456789"
    weird= "/?!$£*<>"
    for i in range(length):
        pw = pw + random.choice(characters) + random.choice(numbers) + random.choice(weird)
    print(pw)
    return pw
password(4)
#this's what I tried
input("press c to copy") 
 
     
     
     
    