# Untitled

unknown
plain_text
8 months ago
1.3 kB
16
Indexable
Never
```---------------------------------------------------Numpy Assignment---------------------------------------------------------

Q1. You are given a NumPy array, arr, of shape (3, 4), representing a 3x4 matrix.
Write a Python function, modify_array(arr), that performs the following operations on the given array:

Double the values of all elements in the array.
Replace all odd values with their negative counterparts.
------------------------------------------------------------------------------------------------------------------

Q2.Create a NumPy array, matrix, of shape (4, 5) with random integer values between 1 and 10 (inclusive).
Write a Python function, calculate_statistics(matrix), that calculates and returns the following statistics:

The mean of each row.
The sum of each column.
The maximum value in the entire matrix.

------------------------------------------------------------------------------------------------------------------
-- Sunday Assignment  --

Q3.write python automation script to open browser and after that automate key press 'F11'
and redirect to https://www.python.org/
--->(F11- is used for full screen presentation on browser)
--->write explanation for libraries used
--->functions and all parameters```