Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 RESULTStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started