Write a Python function that decides whether the given number isprime or not. The function is_prime(n) returns true if n is prime.Write another Python function display_primes(n) that displays allprime numbers less than or equal to n.
Write a Python function process_scores() that reads studentnames and their scores from a user and displays the following:average score, min score, max score, and the students that receivedthe min and max scores. The function repeatedly prompts the user toenter the name and the score of a student. The user enters the nameand the score separated by blank in one line. The name is a singlework and score is an int. User enter q in lower/upper case to quit.The user shouldn’t enter score after q. Outputs are displayed withappropriate messages.
Answer to Write a Python function that decides whether the given number is prime or not. The function is_prime(n) returns true if …