Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python program Please help me with proper coding i cant get it right Create a program called Program 5 A 2 that will do the

Python program
Please help me with proper coding i cant get it right
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 In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

Students also viewed these Databases questions

Question

What are the purposes of performance appraisals?

Answered: 1 week ago

Question

Explain the steps involved in training programmes.

Answered: 1 week ago

Question

What are the need and importance of training ?

Answered: 1 week ago

Question

What is job rotation ?

Answered: 1 week ago

Question

Know how productivity improvements impact quality and value.

Answered: 1 week ago