Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN PYTHON Given below two 2D matricies, add them element wise to form a third 2D matrix z. Display matrix z. Hint: Use for loops

IN PYTHON

Given below two 2D matricies, add them element wise to form a third 2D matrix z. Display matrix z.

Hint: Use for loops for rows and columns, do not use NumPy!

 x = [[1, 2, 3, 4], [5, 6, 7, 6], [8, 9, 10,4]] y = [[3, 1, 1, 4], [7, 7, 7, 7], [8, 9, 10,11]]

Create and test the below two functions.

  1. Define a function and name it domain_get that receives an email address and returns only the domain part of the email address
    • For example, passing this argument "user@cpp.edu" should only return: cpp.edu
  2. Define a function and name it numbers_range that receives arbitrary list of numerical numbers and returns the range of the numbers.
    • For example, passing these numbers "20, 10, 5, -1, 10" should return the value of 21.

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

Hands-On Database

Authors: Steve Conger

2nd Edition

0133024415, 978-0133024418

More Books

Students also viewed these Databases questions

Question

2 What are the implications for logistics strategy?

Answered: 1 week ago