Python Index
Python Index
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
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).
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
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.
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.
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
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