Question: Instructions PC2.17-PC2.18 One individual practical assignment including two tasks Task 1: Create a Python program that includes a function and performs a specific task related
Instructions PC2.17-PC2.18 One individual practical assignment including two tasks Task 1: Create a Python program that includes a function and performs a specific task related to a real-life problem Write a Python function that takes a number as a parameter and check the number is prime or not Note: A prime number (or a prime) is a natural number greater than 1 and that has no positive divisors other than 1 and itself. Test your code and show the output Task 2: Apply the concept of recursion to solve a given real-life problem Answer the following question : Define recursion as a technique where a function invokes itself and discuss the reasons why one would use recursion
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
