0% found this document useful (0 votes)
13 views12 pages

Somya Program Project File

The document contains a series of Python programming tasks, including finding factorials, computing sums and squares, adding natural numbers in a series, and displaying prime numbers. It also includes tasks for reading file contents, entering book and employee details using data structures, checking for palindromes, generating Fibonacci series, and printing patterns. Each task is followed by a placeholder for code and output.

Uploaded by

Jayant Badola
Copyright
© © All Rights Reserved
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% found this document useful (0 votes)
13 views12 pages

Somya Program Project File

The document contains a series of Python programming tasks, including finding factorials, computing sums and squares, adding natural numbers in a series, and displaying prime numbers. It also includes tasks for reading file contents, entering book and employee details using data structures, checking for palindromes, generating Fibonacci series, and printing patterns. Each task is followed by a placeholder for code and output.

Uploaded by

Jayant Badola
Copyright
© © All Rights Reserved
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
You are on page 1/ 12

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

You might also like