Question: Read in the tree inventory file, created in Lab 3 W , and show a count of the number of times a specific species of
Read in the tree inventory file, created in Lab W and show a count of the number of times a specific species of tree occurs in the file. Once you unscramble the program, display the number of oak trees. Unscramble the code below so the output is "there are oak trees":
from BrowserFile import open
import csv
for y in r:
k
with opentreeinventorycsvr newline as f:
for t in y:
tree inputenter tree type to get a count"
k k
if t tree:
printthere are",ktree,'trees'
r csvreaderf
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
