Answered step by step
Verified Expert Solution
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.
- 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
- 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started