The document contains two Python code snippets. The first snippet calculates the factorial of a given number, while the second snippet checks if a number is prime. Both snippets utilize loops and conditional statements for their respective computations.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
4 views2 pages
AKTU Python Unit1 Notes
The document contains two Python code snippets. The first snippet calculates the factorial of a given number, while the second snippet checks if a number is prime. Both snippets utilize loops and conditional statements for their respective computations.