Question: python for data science solve all of the following questions 1. Using list comprehension, create a new list Stars1 that has a * for every

python for data science

solve all of the following questions

python for data science solve all of the following questions 1. Using

1. Using list comprehension, create a new list Stars1 that has a * for every even number and a \# for every odd number in List1. 2. Which functions do we use to create a dictionary from two lists? 3. Create a dictionary named DB a. with this data i. Key:Student1 and value ['Ahmed', 20] ii. Key:Student2 and value ['Yasser', 21] b. Print keys \& values c. Retrieve value by key 'Student2' d. What happens if this is applied DB['Student2'] =[ 'Turki',22] 4. What do we use the map function for? 5. Using numpy create two random 4 by 5 matrices (mat1,mat 2) a. Add and print these two matrices b. Multiple and print these matrices c. Add column 1 from mat 1 with column 2 from mat2 d. Print the result of mat 12+5 mat 2+6

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!