Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PART 1 USING PYTHON 1 15 pts Write a program that considers given list and prints True if all of them are even, and False

PART 1 USING PYTHON image text in transcribed

1 15 pts Write a program that considers given list and prints True if all of them are even, and False otherwise. For example, if list L is given as L-[ 2, 4, 6], code will print True If list L is given as L- [2,3, 4, 6], code will print False 2) 110 ptsl Given two lists X and Y with lengths 6 and 8, construct the matrix C such that Cij -1/(xi-y). (Use for loop for this problem)? 3) 120 ptsl Consider two lists A and B, check if they are same or not. (Use for loop and if conditions for this problem. Do not use existing codes. Use your own codes). For example, if lists A and B are given as A- [2, 4, 6], B-[2, 4, 6], code prints same. If lists A and B are given as A- [2,3, 4, 6], B-[2, 4, 6], code prints not same. Or if lists A and B are given as A- [ 2, 3, 4, 6], B- [ 2, 4, 3, 6], code still prints not same. 4) 120 pts] Write a Python function which finds the largest even and odd numbers in a given list. (Use for loop and if conditions for this problem. Do not use existing codes. Use your own codes)

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

Beginning Microsoft SQL Server 2012 Programming

Authors: Paul Atkinson, Robert Vieira

1st Edition

1118102282, 9781118102282

More Books

Students also viewed these Databases questions