Learn Regular Expressions by Building a Password Generator - Step 13

Tell us what’s happening:

pur dichiarando la funzione generate_password e mettendo le 4 variabili dentro la funzione mi da errore.

Your code so far

import secrets
import string


# User Editable Region

# Define the possible characters for the password
letters = string.ascii_letters
digits = string.digits
symbols = string.punctuation

# Combine all characters
all_characters = letters + digits + symbols
def generate_password():  
    # Define the possible characters for the password
    letters = string.ascii_letters
    digits = string.digits
    symbols = string.punctuation

    # Combine all characters
    all_characters = letters + digits + symbols

# User Editable Region

Your browser information:

Lo user agent è: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36

Challenge Information:

Learn Regular Expressions by Building a Password Generator - Step 13

Benvenuto nel forum @edossalyx

Rimuovi il codice tra "import" e la funzione.

Buona programmazione