Question
Which of these lines of code will generate a random number between 1 and 50?
(1 point)
Responses
input(“1-50”)
input(“1-50”)
print(“1-50”)
print(“1-50”)
import random
import random
num = random.randint(1,50)
(1 point)
Responses
input(“1-50”)
input(“1-50”)
print(“1-50”)
print(“1-50”)
import random
import random
num = random.randint(1,50)
Answers
There are no human answers yet.
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.