Question: A list of numbers nums are given. Write a function called smallest prime() that takes nums as an input and return the smallest prime number
A list of numbers nums are given. Write a function called smallest prime() that takes nums as an input and return the smallest prime number in nums. If none of them is prime, then the ouput is e. Your code snippet should define the following variables: Name Type Description Function to find the smallest prime number in nums smallest_prime python function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
