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

Python Index

Uploaded by

theabhijeetam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Python Index

Uploaded by

theabhijeetam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

INDEX

S. Program Name Page Date Sign


No. No.
1. Any Number is input through a keyboard. WAP to find out it 01/02/24
is an odd or an even number.
2. WAP to Check if the year entered is a leap year. 01/02/24

3. WAP to Check if a triangle is valid or not, when the 01/02/24


three angles of the triangle are entered through the
keyboard.
4. WAP to find the absolute value of a number entered through 01/02/24
the keyboard.
5. Calculate the area of the circle. 01/02/24

6. Calculate the area of the rectangle. 01/02/24

7. WAP that receives 3 sets of p, n, r and calculates the simple 08/02/24


Interest.
8. WAP that prints the numbers from 1 to 10 all in the same 08/02/24
line.
9. WAP to calculate the factorial of any number. 08/02/24

10. WAP to print prime numbers from 1 to 300. 08/02/24

11. WAP to print the multiplication table of any number entered 08/02/24
by the user.
12. Calculate the salary of the person by asking the user to enter 08/02/24
the salary components. (like DA, HRA, TA)
13. WAP to input three integers from keyboard and get their 08/02/24
sum and product calculated.
14. Define a function leap and implement it. 15/02/24

15. WAF to calculate the largest among three numbers. 15/02/24

16. WAF to calculate the LCM of few numbers. 15/02/24

17. WAF to check if the number is odd or even. 15/02/24

18. Write the recursive for factorial. 15/02/24

19. Practice use of global variables. 15/02/24

20. Apply recursion in one more problem (Fibonacci/any other) 15/02/24


21. WAP to print the digit at one’s place of a number. 22/02/24

22. WAP to calculate the bill amount for an item given its 22/02/24
quantity sold, value, discount and tax (use default
argument function, with default values of discount and tax).

23. WAP to calculate student’s result based on two 22/02/24


examinations, 1 sports event, and 3 activities conducted.
The weightage of activities=30%,
sports=20%, and examination=50%.
24. WAP to print ASCII value of a character. (ord(‘A’), char (65)) 22/02/24

25. WAP to read a character in uppercase and then print it in 22/02/24


lower case. (lower(), upper())
26. Income tax for individual is computed on slab rates follows. 22/02/24
IncomeTax payable
Upto Rs. 50,000 Nil
From Rs. 50,001 to Rs. 10% of the excess over 60,000
50,000
From Rs. 60,001 to Rs. 20% of the excess over 1,00,000
60,000
Above Rs. 1,00,000 30% of the excess over
1,00,000
Write a program that reads the income tax and print the
income tax due.

27. Write a program to check a number for perfect number 22/02/24

28. WAP to check whether a number entered is circular or not 22/02/24

29. WAP to check a number is palindrome number or not. 22/02/24

30. Check a number for Armstrong number. 22/02/24

31. Make a calculator.py file and import various functions in 07/03/24


another file.
32. Implement command line arguments (display all the 07/03/24
arguments).
33. Implement command line arguments (add all the numbers 07/03/24
passed on the command line).
34. Implement a calculator using command 07/03/24
line arguments using argparser.
35. Implement command line arguments (add all the numbers 07/03/24
passed on command line)
36. Implement a calculator using command line arguments 07/03/24
using argparser.
37. From the string ‘Bamboozled’, WAP to obtain the following 14/03/24
output :
Ba ed Ed
mboozled
Bamboo

38. Find all the occurrences of ‘T’ in the string ‘The Terrible 14/03/24
Tiger Tore the Towel’. Count them and print.
Also replace it with ‘t’.
39. WAP to reverse the string. 14/03/24

40. WAP to check if the string is a palindrome. 14/03/24

41. Write a Python Program to calculate the length of a string. 14/03/24

42. Write a Python program to count the number of characters 14/03/24


(character frequency) in a string
43. Write a Python program to get a single string from two 21/03/24
given strings, separated by a space and swap the first two
characters of each string
Sample String : ‘abc’, ‘xyz’. Expected Result: ‘xyc’,’abz’.

44. Write a python program to accept a string and count 21/03/24


the total no. of vowels.
45. Write a program to search a character in the string. 21/03/24

46. Write a program to read the email id of the person in the 21/03/24
format expected.
47. WAP to perform the following on the list : 21/03/24
Create a list of 5 names – ‘Anil’, ‘Anmol’, ‘Aditya’, ‘Avi’, ‘Alka’.
Insert a name ‘Anuj’ before ‘Aditya’.
Append a name zulu.
Delete ‘Avi’ from the list.
Replace ‘Anil’ with Anil Kumar.

48. WAP to implement stack data structure which is LIFO. 28/03/24

49. Suppose a list has 20 number. WAP that removes all 28/03/24
duplicates from the list.
50. WAP to Obtain the median value of the list of 28/03/24
numbers, without disturbing the order of numbers in the
list.

51. Write a program to count the occurrence of each character 28/03/24


entered by the user and store them in the dictionary.

52. Write a python program to create two dictionaries, 28/03/24


concatenate them and create third dictionary.
53. Write a program to check whether a given key exists in the 28/03/24
dictionary.
54 Write a program to remove a particular key from dictionary. 28/03/24

55. Write a program to display the minimum and maximum in 28/03/24


the dictionary.
56 Write a program to reverse a tuple. 11/04/24

57. Write a program to calculate the product by multiplying all 11/04/24


the numbers of a tuple.

58. Write a program to check if the number exists in the tuple. 11/04/24

59. Check if two sets have any elements in common. If yes, 11/04/24
display the common elements.
60. Update set1 by adding items from set2, except common 11/04/24
items.
61. Remove items from set1 that are not common to both set1 11/04/24
and set2.
62. WAP to open a file try.txt, add some text into it and close it. 18/04/24

63. WAP to read the above file and print that on the 18/04/24
screen.
64. WAP that writes four integers to a file called numbers. Go to 18/04/24
the following position and report
10 positions from the beginning
2 positions to the right of current position
10 positions to the left from the end.

65. WAP to append the contents of one file at the end of 18/04/24
another.
66. WAP to copy contents of one file to another. 18/04/24

67. WAP to replace to convert lowercase character with 18/04/24


uppercase.
68. WAP to read a file and display its contents along with the 18/04/24
line numbers before each line.
69. WAP to implement inheritance using shape class and 25/04/24
also make rectangle as a derived class. Declare a function
area to calculate the area of rectangle and

also show the color of the rectangle. Also make required


constructors.
70. WAP to implement Multiple Inheritance using the example 25/04/24
of employee class, waged employee and salaried employee.
Write appropriate constructors and functions to calculate
pay.
71. Implement operator overloading for “+” operator for user 25/04/24
defined class.
72. Implement operator overloading for less than equal to 25/04/24
operator for user defined class.
73. Implement operator overloading for – 25/04/24
(minus operator).
74. Implement operator overloading for unary operator ++ and 25/04/24
--.
75. Implement Exception Handling for divide by zero exception. 25/04/24

76. Implement Exception Handling using Raise statement. 25/04/24

77. Implement Threading. 25/04/24

78. WAP to construct a 3D array of dimensions 4x2x3. Initialize 02/05/24


the array to some value. Find the maximum along each axis.

79. Create a program to achieve the following. 02/05/24


Create an array of size 10 with each element of it set to a
value 3.
Find the memory size of this array and its individual
element.
Create an array b of size 10 with values ranging from 0 to 90
evenly spaced.
Reverse elements of array b.
Add arrays a and b and store the result in c.

80. Declare a matrix of 3 by 3 and calculate its transpose. 02/05/24

81. Write a menu driven program to Perform all the matrix 02/05/24
operations.
82. Write a program to count all the odd numbers in 1D array. 02/05/24

83 Write a program to check if none of the elements is zero in 02/05/24


the array.
84. Write a program to extract all prime numbers from an array. 02/05/24

You might also like