Im trying to run some python code in my terminal in vs code but i get errors when trying to run it. below is my code.
import string
from random import choice, shuffle
def randomPass():
lower = list(string.ascli_lowercase)
upper = list(string.ascli_uppercase)
digits = list(string.digits)
all = lower + upper + digits
shuffle(all)
length = int(input("How long is the password?: "))
password = ''
for i in range(length):
password += choice(all)
print(password)
randomPass()
below is the errors i get when trying to run the code by using randomPass and How long is the password?: 10
allis an inbuilt function in Python, try a different name.