1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
suter [353]
3 years ago
10

Write code that generates a random odd integer (not divisible by 2) between 50 and 99 inclusive.

Computers and Technology
1 answer:
san4es73 [151]3 years ago
8 0

import random

nums = [x for x in range(50,100) if x%2!=0]

print(random.choice(nums))

We use a list comprehension to create a list of the odd numbers between 50 and 99. Then we randomly choose one of those numbers using the random module.

You might be interested in
Who is the best Zelda character
Flura [38]
They’re all pretty good!
7 0
2 years ago
Read 2 more answers
There are many potential risks associated with the internet. what do we call the distribution and access of illegal copies of di
GarryVolchara [31]

The potential risks that is linked with the use of internet as a resource point is known to be copyright infringement.

<h3>What is Copyright infringement?</h3>

This is known to be the creation of a book or any other resource material that has been copyrighted and protected without taking the granted permission of the copyright holder who is found to be the author of the work.

Note that The potential risks that is linked with the use of internet  resource point is known to be copyright infringement and one can be punish for it.

Learn more about copyright infringement from

brainly.com/question/14855154

#SPJ4

6 0
2 years ago
How many images are necessary for stereoscopy to work?
solong [7]

Answer:

2 images

Explanation:

The two images are then combined in the brain to give the perception of depth.

6 0
3 years ago
Dani wants to create a web page to document her travel adventures. Which coding language should she use? HTML Java Python Text
Anna [14]

Answer:

HTML, CSS, JavaScript, python, SQL

Explanation:

To create a web page for her travel adventures Dani has to use HTML and CSS to design the page's layout. A beautiful simple design such as one which shows photos of her on her travel destinations, and a paragraph for her to write a little story on her travels would do.

Dani needs JavaScript to animate the photos she's going to post on the page. Dani also should use python to build the backend of her page so she can write codes to save and access her documented adventures from the database. She should use a database language like SQL to save all of her adventures so she can view them at a later time for the memories.

7 0
3 years ago
What type of loop structure repeats the code based on the value of a boolean expression?.
mixas84 [53]

Answer:

Condition-controlled loop

Explanation:

be happy

8 0
2 years ago
Other questions:
  • What's the risk or effect of software piracy?
    12·2 answers
  • Which of the following is NOT a major type of crime reported to the IC3.
    12·1 answer
  • 110011 * 1111 binary calculation
    15·1 answer
  • What are some tasks for which you can use the VBA Editor? i need help for my computer class.
    5·1 answer
  • TCP is the protocol responsible for the delivery of data on the Internet, and IP provides addresses and routing information.
    12·1 answer
  • HELP 15 POINTS
    12·2 answers
  • How do you close a file?
    12·2 answers
  • Please help me please please
    14·2 answers
  • What is most likely to happen to the purchasing power of money over time?
    5·1 answer
  • If a company uses multimedia applications in addition to normal file and database sharing, which transmission is more efficient?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!