Solve each exercise in the provided empty cell.

Anonymous
timer Asked: Mar 8th, 2019
account_balance_wallet $25

Question Description

For the quiz in second and third page, Answer each question (TRUE or FALSE) in the provided empty cell. Then press shift-enter.

Unformatted Attachment Preview

HOMEWORK Instructions: • • Run the setup cell Solve each exercise in the provided empty cell. If you wish you can insert additional cells. Setup In [51]: import numpy as np import matplotlib.pyplot as plt %matplotlib inline E1 (5 pts) Given the list of numbers in file data1.txt, write a program to find and print the highest/largest number. E2 (10 pts) Modify your solution in E1 to find and print the sum of the two largest numbers. E3 (5 pts) Create a text file named even.txt containing the first 10 even numbers, one per line. To verify that your file is correct, open and print the file contents to the screen. E4 (10 pts) Open the file macbeth.txt and • • print the number of lines with text - that is excluding empty lines print the total number of characters in the file (hint: this number should be the same as the file size) E5 (10 pts) Use the function extract_data from chapter 11 to extract the data in file data2.txt. Use matplotlib to plot y vs t, where y are the rainfall values and t are the months of the year (1 through 12). In your plot add labels a title and any other decoration you may find useful. quiz ...
Purchase answer to see full attachment

Tutor Answer

andythewxman
School: UT Austin

Attached.

1. TRUE
2. FALSE – it returns a list, not a string
3. TRUE
4. FALSE – the...

flag Report DMCA
Review

Anonymous
Tutor went the extra mile to help me with this essay. Citations were a bit shaky but I appreciated how well he handled APA styles and how ok he was to change them even though I didnt specify. Got a B+ which is believable and acceptable.

Similar Questions
Hot Questions
Related Tags
Study Guides

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors