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.4m
questions
12.2m
answers
Other Questions
A piston-cylinder device fitted with stops in the cylinder walls contains 2.1 kg of water initially at 150 kPa and 30 °C. Heat is transferred to the system until the final temperature reaches 250 °C. The
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
A water towers lowest point is 405 ft and the main line is 6 feet below the ground. The ground elevation is at 276 ft. The main line travels 2.9 miles. The pipe will travel through the following flanged
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