Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!