(Solved):Assign to avg_owls the average owls per zoo. Print avg_owls as an integer. Sample output for the given program: View Answer…

 

Question

Assign to avg_owls the average owls per zoo. Print avg_owls as an integer. Sample output for the given program:

Average owls per zoo: 2

1 num_owls_zooA = 1

2 num_owls_zooB = 2

3 num_owls_zooC = 4

4 num_zoos = 3

5 avg_ owls = 0.0

Solution:

 

EXPERT ANSWER

Using Python3, we can perform the average operation on the given data, then typecast to an int datatype to get the desired output.

num_owls_zooA = 1
num_owls_zooB

Scroll to top