Learn Regular Expressions by Building a Password Generator - Step 9

Tell us what’s happening:

I was asked to print the result of calling random on this code, and its still not accepting my result, any help or hint on where i might be making the mistake at.

Your code so far

import random
import string


# 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

print(all_characters)

# User Editable Region

def random():
    print(random)

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36

Challenge Information:

Learn Regular Expressions by Building a Password Generator - Step 9

Hello!

  • No need to define a random function, random( ) is a method that already includes the functionality.

  • All you need is a print statement. Print out random( ) by accessing the random module. Hint: the dot notation might be useful to access the random module.