Write a program that generates 100 random numbers and keeps a count of how many of those random numbers are even and how many of
them are odd.
1 answer:
Answer:
import random
numbers = []
even = 0
odd = 0
for i in range(100):
numbers.append(random.randint(1, 200))
for i in range(100):
if numbers[i] % 2 == 0:
even += 1
else:
odd += 1
print("Even:", even)
print("Odd:", odd)
Explanation:
Gg ez.
You might be interested in
Answer:
CPU
Explanation:
CENTRAL
PROCESSING
UNIT
Answer:
the brainly thing is saying that i can't put the answer so i screenshotted it and put it down below
Explanation:
It is C) A credit investment system.
Answer:
True hope this helps you and everyone!
Answer:
running in the 90 s intensifies
Explanation: