adamcookie26 adamcookie26
  • 20-11-2020
  • Computers and Technology
contestada

python code 100 Random Numbers (twice)

python code

instructions:
You need to write code that will print two bricks of numbers, one with integers, one with decimals.

Respuesta :

Cytokine
Cytokine Cytokine
  • 20-11-2020

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!

Answer Link

Otras preguntas

How is a credit union different from a retail bank? A. A credit union is a nondepository institution; a retail bank takes customer's deposits. B. A credit
The electrons which are primarily responsible for chemical bonds are:
Over the last century, which newspaper has had a lasting reputation as the country's best newspaper
A 400.0 ml sample of 0.10 mba(oh)2 is titrated with 0.10 mhbr. determine the ph of the solution before the addition of any hbr.
hypothesis the germanization of radish seeds is affected by the chemistry of the soil
_____ champán en la celebración de anoche. 2. ahora ___ una fiesta de graduación en el patio de la universidad. 3. ______muchos invitados en la fiesta de aniver
I NEED HELP, I'LL CHOOSE BRAINLIEST!!!!! Think about what you learned in the lesson and the sources you analyzed in the assignment. How did the Industrial Revol
how many feet are in 20 yards
what happened after the duel between burr and Hamilton
When using pictures in your presentation what must you include