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
Nastasia [14]
2 years ago
12

HELP! Write a program that generates 6 random numbers between 0 and 30, prints the numbers as shown, calculates the sum and the

average of these numbers, and prints them
Computers and Technology
1 answer:
Irina18 [472]2 years ago
6 0

The program that generates 6 random numbers between 0 and 30 and makes mathematical computations is:

import random

import statistics

a = random.random()

b = random.random()

c = random.random()

d = random.random()

e = random.random()

f = random.random()

print("Generated Numbers:")

print(a, b, c, d, e, f)

seq = (a, b, c, d, e, f)

mean = statistics.mean(seq)

median = statistics.median(seq)

mode = statistics.mode(seq)

print("Mean =", mean)

print("Median =", median)

print("Mode =", mode)

Read more about programming here:

brainly.com/question/23275071

#SPJ1

You might be interested in
All languages require the code which is simply a word that means _____.
ddd [48]

Answer:

I think the answer is (d)

5 0
3 years ago
A sequence of data values separated by commas can be made into a list by enclosing the sequence in what type of symbols?
Dovator [93]

Answer:

square brackets [ ]

Explanation:

In python programming language a list is a data structure type that contains data values which can be of different data types separated by commas and enclosed in a pair of square brackets. in the example below, I have created a list and initialized the values

MyList = [ 2,3,4,5,"David", 2.5, 5.8].

This list contains three different data types integers, float and a string

This code below will produce the output that is attached as an image

<em>MyList = [2,3,4,5,"David"]</em>

<em>print(MyList[0])</em>

<em>print(MyList[1])</em>

<em>print(MyList[2])</em>

<em>print(MyList[3])</em>

<em>print(MyList[4])</em>

<em>Observe that list follow the zero-based indexing</em>

3 0
3 years ago
Amy has decided to use a dark background and light colored text for her prensentation. Which toolbar option will let her change
SashulF [63]

Front color c because your changing the color of the text not the box line or fill

7 0
3 years ago
In general, the outside _____ and sleeves of the isolation gown and outside front of the goggles, mask, respirator and face shie
diamong [38]
The answer to this question is the letter "A" which is TIES. In general, the outside TIES and sleeves of the isolation gown and outside the front of the goggles, mask, respirator and face shield are considered "contaminated" regardless of whether there is visible soil.
7 0
3 years ago
Read 2 more answers
In a transaction-processing system (tps), if the tps database can be queried and updated while the transaction is taking place,
Alona [7]
This is called Real time processing. A Transaction Processing System (TPS) is a kind of data framework that gathers, stores, adjusts and recovers the information exchanges of an undertaking. Exchange handling frameworks additionally endeavor to give unsurprising reaction times to demands, despite the fact that this is not as basic with respect to continuous frameworks.
6 0
3 years ago
Other questions:
  • The process of _____ determines what volume a system can handle by comparing its performance to standards in the industry.
    7·1 answer
  • In which phase of the design process does the developer establish the project goals? A. Design B. Planning C. Development D. Lea
    15·2 answers
  • PLEASE HELPPPPPPP
    15·1 answer
  • When using a file name you have to use only lower case letters<br>true or false
    11·1 answer
  • Which entity has the principal responsibility to control the execution of processes?
    14·1 answer
  • Pixar is a company that creates a huge amount of images, audio recordings, and videos, and they need to decide what compression
    11·1 answer
  • D) Software which is basically language translation software.​
    11·1 answer
  • NEED HELP ASAP
    13·2 answers
  • How do you create a turtle in python again-
    6·1 answer
  • 30 POINTS FOR THE CORRECT ANSWERS
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!