To operate the Blended Learning Center(BLC) at optimal level, maintenance will be performed every day at 8:30 AM and at 5:00 PM regularly which can take up to 30 minutes. Please consider scheduling your activity in the BLC platform accordingly.
Lab Task on Lesson-3
Suppose, you have been assigned to determine the factorial of an integer. Now, write a python code that will take an integer as input and will determine the factorial with the help of a user-defined function named "factorial".
Sample Inputs
|
Sample Outputs
|
4
|
4! = 24
|
5
|
5! = 120
|
N.B. You need to submit the code in the provided online editor. There is no need for any file attachments.