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
uysha [10]
3 years ago
15

Write a program that fills a list with 100 random numbers between 0 and 200, inclusive. Traverse through the list and only print

out the numbers that are less than 99. You can develop this code in App Lab if you like and copy your final program to the answer area below. Keep the code neat and use curly braces where necessary. This question is worth 4 points. *
Computers and Technology
1 answer:
svet-max [94.6K]3 years ago
7 0

Answer:

Follows are the code to this question:

import random as ra#import package  

r=[ra.randint(0, 200) for x in range(100)]#defining a variable r that use rand method to add value in list  

j= [i for i in r if i < 99]#defining j variable that checks list value is less than 99

print (j)#print list value

Output:

[20, 23, 66, 47, 89, 7, 18, 13, 92, 31, 23, 60, 3, 52, 18, 20, 85, 64, 55, 98, 14, 80, 80, 14, 57, 92, 76, 14, 91, 83, 87, 80, 16, 50, 7, 88, 19, 4, 72, 23, 27, 79, 23]

Explanation:

In this code, package random is imported, in the next step, the r variable is declared, that uses the randit method, and use for loop that adds value in the list. In the next step, the j variable is declared, which uses a for loop and a conditional statement to check its value is less than 99, add print its value.

You might be interested in
Software that people commonly use in the workplace to make their lives easier is called
Bogdan [553]
It is either System Software or Productivity Software.

Hope this helps!
3 0
3 years ago
Anyone help me on this ?
HACTEHA [7]

Answer:

The first one is Mobile Marketing Second Box is social media and the last is Search engine

Explanation:

4 0
3 years ago
Discuss some designs using columns, gutters, text alignment, graphics, etc.
Naily [24]

Answer:

.......

Explanation:

8 0
3 years ago
What command is used to locate all occurrences of the word "dog" in a document?
rosijanka [135]

Microsoft Word can easily find text in your document. This search is handled by the Find command. To locate the occurrences of the word dog in a word document, you can either click the find button on the home tab or press the combination keys ctrl+F and type the word dog. You also press ctrl+G. The Find and Replace dial box will pop up, with the Go To tab displayed. You will go ahead and click the Find tab and type the word dog.

3 0
3 years ago
Read 2 more answers
The false reject rate describes the number of legitimate users who are denied access because of a failure in the biometric devic
Eduardwww [97]

Answer: Rate

Explanation:

  • Rate is the one that is used to describe the number of legitimate users who are denied access because there is a failure happening in the biometric device and that type of failure is also known as Type I Error.

When it comes to hypothesis testing we can say that this kind of error is considering the rejection of the null hypothesis. On the other side, there is also Type II Error who is not rejecting the false null hypothesis and it is the opposite of a Type I Error.

4 0
3 years ago
Other questions:
  • Which of the following are pointers? Select all that are correct. hub node router transmission media switch port interconnector
    7·2 answers
  • Generally considered to be the most important information security policies, what item below defines the actions a user may perf
    15·1 answer
  • PLEASE HELP!
    12·2 answers
  • When a computer is booted the checks the computer's components?
    7·1 answer
  • ________________are programs that designed to help users to be more productive with their personal tasks
    11·2 answers
  • Tortise and hare race java g Modify the main class so it runs the race 100 times and reports how many times each runner wins. (T
    7·1 answer
  • Describe the difference between the circumscribed and inscribed options when using the AutoCAD Polygon command
    14·1 answer
  • (Display characters) Write a method that prints characters using the following header: public static void printChars(char ch1, c
    6·2 answers
  • I'm bor.ed so... here's my em.ail
    9·1 answer
  • When a linked chain contains nodes that reference both the next node and the previous node, it is called a(n)?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!