Write function average-of-primes that takes in a list of int


Problem

Write the function average_of_primes(L) that takes in a list of integers and returns the average of all the prime numbers in the list. For convenience, the is_prime function has been implemented for you as it is written in the lecture video. If you'd like an extra challenge, try writing it from scratch.

Request for Solution File

Ask an Expert for Answer!!
Python Programming: Write function average-of-primes that takes in a list of int
Reference No:- TGS03323531

Expected delivery within 24 Hours