0% found this document useful (0 votes)
3 views

python index

The document lists a series of practical programming tasks, including checking for leap years, generating patterns, calculating factorials, and implementing data structures like stacks and queues. It covers various algorithms such as Fibonacci series generation, GCD calculation, and sorting methods. Each task is designed to enhance programming skills and understanding of fundamental concepts.

Uploaded by

MOD KING
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

python index

The document lists a series of practical programming tasks, including checking for leap years, generating patterns, calculating factorials, and implementing data structures like stacks and queues. It covers various algorithms such as Fibonacci series generation, GCD calculation, and sorting methods. Each task is designed to enhance programming skills and understanding of fundamental concepts.

Uploaded by

MOD KING
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

S.

No List of Practical
1 Write a program that reads an integer value and prints —leap year or —not a leap
year.
2 Write a program that takes a positive integer a and then produces n lines of output
shown as follows.
3 Write a program to create the following Pattern For example enter a size: 5 –
*
**
***
****
*****
4 Write a function that takes an integer n as input and calculates the value of 1 +
1/1! + 1/2! + 1/n!
5 Write a function that takes an integer input and calculates the factorial of that
number,
6 Write a function that takes a string input and checks if it is a palindrome or not
7 Write a list function to convert a string into a list, as in list (-abc) gives [a, b, c]
8 Write a program to generate Fibonacci series.
9 Write a program to check whether the input number is even or odd.
10 Write a program to compare three numbers and print the largest one.
11 Write a program to print factors of a given number.
12 Write a method to calculate GCD of two numbers.
13 Write a program to create Stack Class and implement all its methods, (Use Lists)
14 Write a program to create Queue Class and implement all its methods, (Use Lists)
15 Write a program to implement linear and binary search on lists,
16 Write a program to sort a list using insertion sort and bubble sort and selection
sort.
Index

You might also like