Computer Science 2
Computer Science 2
Session:2021-2022
Practical File
Class: 12th ‘A’
Computer Science
Submitted to: Submitted
by:
Miss Sonam Sahu Aman Shukla
Ackn
owled
I gment
would like to express my
special thanks of gratitude to
my teacher Miss Sonam Sahu as well as
our principal Mrs Amrita Gupta who
gave me the golden opportunity
to do this wonderful, which also
helped me in doing a lot of
Research and i came to know
about so many new things I am
really thankful to them.
Secondly I would also like to
thank my parents and friends
who helped me a lot in finalizing
this project within the limited
time frame.
Teacher’s Signature External Examiner
Signature
Index
S. Programs Pag Teacher’s
No. e
Signature
No.
1 Read a text line by line and display each 1-1
word seperated by a #.
list. 11
Output:
2) Read a text file and display the number of the
vowels/consonants/
uppercase/lowercase characters im the file.
Source code:
Output:
Before:
After:
Output:
Output:
10) Write a python program to print number
pyramid pattern.
Source code:
Output:
11) Write a python program to sort the given list.
Source code:
Output:
12) Write a python program to sort a string.
Source code:
Output:
13) Write a python program to python program to
print odd indexed elements in given list.
Source code:
Output:
14) Write a program to convert temperature from
celsius to fahrenheit.
Source code:
Output:
15) Write a python program to check if a number
is positive, negative, zero.
Source code:
Output: