Maria is creating a game that will need a random number. Which line of code should be included in this program?

(1 point)

• import random

• print(random number)

• num = random

• create random

1 answer

The correct line of code that Maria should include in her program to generate a random number is:

• import random

This statement imports the random module in Python, which provides various functions to generate random numbers. After this, she can use functions like random.randint() or random.random() to generate random numbers.