Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a program called Program 5 A 2 that will do the following: Generate 1 5 random integers between 1 and 2 0 and put

Create a program called Program5A2 that will do the following:
Generate 15 random integers between 1 and 20 and put them into a list.
Print the list
Count the number of odd values in the list and print that value.
Create a new list with only the odd numbers from the original list and print it.
Count the number of even values in the original list and print that value.
Create a new list with only the even numbers from the original list and print it.
image text in transcribed

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 Systems On GPUs In Databases

Authors: Johns Paul ,Shengliang Lu ,Bingsheng He

1st Edition

1680838482, 978-1680838480

More Books

Students also viewed these Databases questions

Question

Solve using a signal flow chart

Answered: 1 week ago

Question

Comment should this MNE have a global LGBT policy? Why/ why not?

Answered: 1 week ago