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
Vanyuwa [196]
3 years ago
9

Python code 100 Random Numbers (twice)

Computers and Technology
1 answer:
Leona [35]3 years ago
8 0

import random

i = 1

while i <= 100:

   print("#"+str(i)+": "+str(random.randint(1,100)), end=", ")

   i+=1

print()

i = 1

while i <= 100:

   print("#"+str(i)+": "+str(random.uniform(1,100)), end=", ")

   i += 1

I hope this helps!

You might be interested in
Trish has bought a new computer that she plans to start working on after a week. Since Trish has not used computers in the past,
kotegsom [21]
Hello, I am charlespierce576! I believe I might have the answer! Simple policies such as turning of off devices not in use. Also unplugging devices during a storm.
4 0
4 years ago
The user can close all the programs if he closes the open virtual desktop true false
steposvetlana [31]

The user cannot close all the programs if he closes the open virtual desktop.

<h3>What are virtual desktops?</h3>

A virtual desktop is a computer operating system that does not run directly on the endpoint hardware from which a user accesses it.  The desktop environment is separated from the physical device used to access it.

I call it a false desktop.

It is use to separate your work activities.

Therefore, the user cannot close all the programs if he closes the open virtual desktop.

learn more on virtual desktop here: brainly.com/question/14332029

#SPJ12

3 0
2 years ago
Can we declare top level classes as private or protected?
uysha [10]

Answer and Explanation:

top level class can not be declare as private or protected. It is always public. If we declare a top level class as private then the compiler always complain that the  private is not allowed  and if we declare top level class as protected then compiler complain that modifier protection is not allowed here. so we can not declare top level class as private or protected

5 0
4 years ago
Which data type is used to teach a Machine Learning (ML) algorithm during structured learning?
vodka [1.7K]

Which data type is used to teach a Machine Learning (ML) algorithm during structured learning?

answer:

5 0
3 years ago
are there any hexadecimal digits that cannot be created using 4 bits? how many bits would you need to represent the hexadecimal
Delvig [45]
  • 1.No there is no any hexadecimal digits that cannot be created using 4 bits. Hexadecimal digits can all be created using 4 digits/
  • 2.The number of bits required to to represent the (10)16 is 5 bits.
  • 3. To represent every hexadecimal value from 016 to ff16, 8 bits will be required
  • 4. The given number is in binary and to convert any binary number to hexadecimal, we convert it sets of 4 digits to the hexadecimal equivalent.
  • 5. The value of converting the given binary to a number in  hexadecimal is 93DA

<h3>what is hexadecimal?</h3>

The term hexadecimal refers to a number systems in base 16. Most number systems are in decimal or base ten however hexadecimal is a kind of number system that is in base 16. Hexadecimal has the base ten numbers from 0 to 9 and additional letters A, B, C, D , E, and F

<h3>How to convert to binary to hexadecimal</h3>

(1001 0011 1101 1010) base 2

1001= 8+0+0+1=9

0011=0+0++2+1=3

1101=8+4+0+1=13=D

1010=8+0+2+0=10=A

bringing the values together gives

93DA

Read more on hexadecimal here: brainly.com/question/11109762

#SPJ1

8 0
1 year ago
Other questions:
  • Select all of the uses of presentation software in the workplace.
    8·1 answer
  • Hello, can you help me answer these questions?
    9·2 answers
  • The term "Cloud" refers to what option(s) below? (Select all that apply)
    13·1 answer
  • If you go over 255 in RGB by 1 does it reset to 0 or 1
    11·1 answer
  • The Telecommunications Act of 1996 was a mixed bag for cable customers. Although cable companies argued that it would bring more
    8·1 answer
  • Explain any 10uses of computer that are specific to your field of study giving appropriate examples​
    13·1 answer
  • 19 dollar fortnite giftcard who wants it
    15·2 answers
  • Consider the following code segment.
    5·1 answer
  • Using C, Write a program that reads a series of strings from standard input and prints only those strings beginning with the let
    8·1 answer
  • What ribbon command on the home tab can you use to change a cell fill color
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!