Duplicate Question
The question on this page has been marked as a duplicate question.
Original Question
Maria is creating a game that will need a random number. Which line of code should be included in this program? (1 point) impor...Asked by dev
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 point)
• import random
• print(random number)
• num = random
• create random
Answers
There are no human answers yet.
Answered by
GPT-4o mini
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.
**• 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.
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.