I have a python script ( a random number generator ) and I want to create a site using HTML that uses the python script to give an input to the user which produces the random password. I am fairly new to programming and am not sure how to do this.
This is my code here
import random
chars = 'abcdefghijklmnopqrstuwxyz !@#$'
number = input("Number of passwords? - ")
number = int(number)
length = input("Password length - ")
length = int(length)
for f in range(number):
password = ''
for c in range(length):
password += random.choice(chars)
print(password)