The city zoo separates their animals according to weight. Thelocations are based on the weight cutoffs (in pounds) shown in thetable below.
Weight
Location
200 or above
Jumbo Jungle
Less than 200
Mid-Meadows
Write a python code that reads animal RFID (integer),Name (string) and Weight (integer) from a file until theEOF(loops) is reached. The program will find the largest andsmallest animal and calculate the average of each category. .(hint: you will need a set of variables for each category.
Output screen:
Solution
Here is the completed code for this problem. Commentsare included, go through it, learn how things work and let me knowif you have any
OR
OR