PYTHON SOURCE CODE
1) Write a code to find the factorial of a number
Code#
Output
2) Write a code to compute and print the sum and squares of n
natural number
Code#
Output
3) To add natural number of series 1+1/2+1/3+1/4….. upto l numbers
#code
Output
4) Write a python function to multiply all the numbers in a list
#Code
#Output
5) Write a program to display the prime numbers from 2 to N
#Code
Output
6) Write a python program to read a file article.txt count and print
length of file uppercase lowercase digits special characters
#Code
Output
7) write a python program to enter book details using stack data
structure
#Code
Output
8) Write a code to enter employee details using queues
#Code
Output
9) Write a python code to enter a string check if it is palindrome or
not
#Code
Output
10) Write a python program to print Fibonacci series upto n(entered
by user)
#Code
#Output
11) Write a python program to print the following pattern
*
* *
* * *
#Code
Output