The correct line of code needed for a game in which the player will try to guess a number that the computer has selected is:
import random
This module is typically used to generate random numbers, which is essential for the game's functionality.
Which line of code is needed for a game in which the player will try to guess a number that the computer has selected?
(1 point)
Responses
import random
import random
import math
import math
import generator
import generator
import numbers
import numbers
Skip to navigation
1 answer
The correct line of code needed for a game in which the player will try to guess a number that the computer has selected is:
import random
This module is typically used to generate random numbers, which is essential for the game's functionality.