menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
Which of the following will assign a random number in the range of 1 through 50 to the variable number? a. random(1,50) = number b. number = random.randint(1, 50) c. randint(1, 50) = number d. number =
asked
Sep 13, 2023
18.6k
views
5
votes
Which of the following will assign a random number in the range of 1 through 50 to the variable number?
a. random(1,50) = number
b. number = random.randint(1, 50)
c. randint(1, 50) = number
d. number = random(range(1, 50))
Engineering
college
Lilbyrdie
asked
by
Lilbyrdie
7.9k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
3
votes
Answer: B. number = random.randit (1, 50)
SubhoM
answered
Sep 19, 2023
by
SubhoM
8.4k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Sep 3, 2024
39.3k
views
Which line of code needs to be included before you can execute num = random.randint(1,10)? Group of answer choices create random import random import randint randint = random
Bguiz
asked
Sep 3, 2024
by
Bguiz
8.4k
points
Computers and Technology
high-school
1
answer
0
votes
39.3k
views
asked
Jul 18, 2024
126k
views
Import random as r val = 35 P=7 Num=0 for i in range(1,5): Num=val+r.randint(0,p-1) print(Num,"$",end="") p=p-1
Oryol
asked
Jul 18, 2024
by
Oryol
7.3k
points
Computers and Technology
college
1
answer
0
votes
126k
views
asked
Jun 4, 2024
97.6k
views
Multiplication Quiz In this exercise, you will write a Python program that quizzes the user on multiplication problems using a while loop. Hints: - Use the random.randint() function to generate two random
KkMIW
asked
Jun 4, 2024
by
KkMIW
8.8k
points
Computers and Technology
high-school
1
answer
1
vote
97.6k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.5m
questions
12.2m
answers
Other Questions
4. Which of the following is the first thing you should do when attempting to park? A. Securing the parking spot by standing in it B. Turning on your hazard lights C. Confirming the space can fit your
An activated sludge plant is being designed to handle a feed rate of 0.438 m3 /sec. The influent BOD concentration is 150 mg/L and the cell concentration (MLVSS) is 2,200 mg/L. If you wish to operate the
The bulk modulus of a fluid if it undergoes a 1% change in volume when subjected to a pressure change of 10,000 psi is (a) 0.01 psi (b) 0.001 psi (c) 0.00001 psi (d) 0.000001 psi (e) none of these
Where are all the controls on most circuits?
Adding moisture is the ONLY way to obtain saturated air from unsaturated air. a)-True b) False
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org