Question: Please help me in this python code and Only answer for PYTHON Write a short python program to create 1000 random integers in the range

 Please help me in this python code and Only answer for

PYTHON Write a short python program to create 1000 random integers in

Please help me in this python code and Only answer for PYTHON

Write a short python program to create 1000 random integers in the range between 1 and 10 Count the number of times a number is smaller than or equal to five or not Print the result. The numbers for higher and lower count should be roughly the same import time import random higher = 0 lower INSERT CODE TO SEED YOUR RANDOM NUMBER GENERATOR #create 1000 integer random numbers for i in range (SPECIFY RANGE): CREATE RANDOM NUMBER BETWEEN 1 AND 10 if number 5: INCREMENT COUNTER FOR HIGHER else: INCREMENT COUNTER FOR LOWER PRINT RESULT

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!