Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions

Question

4. Identify some patterns of how people consume popular culture.

Answered: 1 week ago

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago