1. Engineering
  2. Computer Science
  3. python...

Question: python...

Question details

pythonAssignment #2 . Make a notebook and change the name of the notebook to: YourLastNamelnitial_HW_02 (for example . In a markdown cell, write a description of what the notebook does . Create another list that is empty CychB_HW 02) Create a list of numbers from 0 to 100 . Write a for loop that takes the square root of all the values in your list of numbers (using np.sqrt) and appends them to the empty list. Print out all the numbers that are divisible by 4 (using the modulo operator) Plot the square roots against the original list. . . Create a dictionary with at least 4 key:value pairs . e Wr ite your own module that contains at least four functions and uses a dictionary and a list. Include a doc string in your module and a comment before each function that briefly describes the function. Save it with the magic command %%writefile YOURMODULENAME.ру . Import the module into your notebook and call all of the functions.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution