Generation

generate functionThu, 17 Nov 2022

Generate a 9 digit password

import random def password(): arr = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*()_+" pw = "" for i in range (0,9): pw = pw + random.choice(arr) return pw password()

Questions about programming?Chat with your personal AI assistant