D.A.V Public School, Sector-37 Faridabad: Computer Science (083) Practical File
D.A.V Public School, Sector-37 Faridabad: Computer Science (083) Practical File
PRACTICAL FILE
MADE BY-
NAME :Aman Singh Negi, Dhruv Sharma & Hritwiz Kamat
CLASS : XII A
BOARD ROLL NO :________
Practical List:
S.no. Programs
Write a program using a user defined function to check if a string is a palindrome or not.
1
change an inputted string into a list and then count no of a letter inputted by the user and find length of the
2 list.
Input a string from the user.Now do its slicing by taking the lower and upper limits from the user.Also
5 reverse the string by the method of slicing.
Write a program which gives the value of compound interest by taking the inputs required and then tell
6 the total amount to be paid.
Write a program that reads a date as an integer in the format MMDDYYYY. The program will call a
7 function that prints out the date in the format <Month Name> <day>, <year>.
Write a program that returns the area and perimeter of a circle rectangle and square after taking input
8 from the user.
Write a Python program to reverse a string by taking input from the user.
9
Write a Python function that accepts a string and calculate the number of uppercase letters and
10 lowercase letters
Write a program to create a text file in which quotes can be written and find the no. of times character
11 'a' or 'A' occurs in the text.
Write a program that creates a binary file with roll number, name and marks and add a new roll number,
12 name and marks of a student.
Write a program to search for a given roll number in "Record.dat" file and display the name, if not found
13 display appropriate message.
Output:
#PROGRAM 2: change an inputted string into a list and then
count the number of letters inputted by the user and find length
of the list.
CODE:
OUTPUT:
OUTPUT:
CODE:
OUTPUT:
OUTPUT:
Bin
ary file created:
Code:
Output: