Question: Q1 Q2 What are the Arithmetic Operators that Python supports? Consider a two-dimensional numpy array mat with size 3*3. How to calculate the sum

Q1 Q2 What are the Arithmetic Operators that Python supports? Consider a two-dimensional numpy array mat with size 3*3. How to calculate the sum of each column in matrix (numpy array mat), how to calculate the sum of each row in matrix? Q3 Given a set write the python code to perform the following operations: Months 1 {"Jan", "March","May","July","August","October","December"} Months2 {"Feb","April","June","July","September"November","December"} (i) Union (ii) Intersection (iii) Difference between two sets Q4 Explain the function dtype, type, shape, size, reshape, ndim in numpy array.
Step by Step Solution
3.44 Rating (151 Votes )
There are 3 Steps involved in it
Q1 Python supports several arithmetic operators Here are the most common ones Addition Adds two numbers Subtraction Subtracts the right operand from t... View full answer
Get step-by-step solutions from verified subject matter experts
