import random

def generatePW(num):
    password = ""

    for i in range(num):
        password += str(random.randint(0, 9))

    return password


print("************")
print("202606058/김민수")
print("************")

num = int(input("비밀번호 자리 수: "))

print("생성된 비밀번호 :", generatePW(num))

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: