Write by Python language please.

Assignment 2 o Write a function to find a factorial of given number. • Function name should be factorial . An integer is giv Assignment 2 o Write a function to find a factorial of given number. • Function name should be ‘factorial . An integer is given as input and value is at least 1. (non-negative) . The function must return a factorial result. • The code below will print as figure 2. def fac(number): # write statement >1 *2 *3 *4 *5 = 120 fac(5) Figure 2.



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *