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

Wa0000

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)
13 views

Wa0000

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/ 5

NEW HORIZON SCHOLAR’S

SCHOOL,
KAVESAR, THANE (W)

COMPUTER SCIENCE(083)
PRACTICAL FILE
with

2024 – 2025

Submitted By: Mrinalini karbagam karthikeyan


NAME: Mrinalini karbagam karthikeyan
CLASS/DIV: 12 A(sci)
Roll No.: 6
Exam Seat Number:
Submitted To: Mrs Aarati Mahajan
Index
SN Program Signatur
. e
1 WAP to input a year and check whether the year is leap year or not.

2 WAP to input 3 numbers and print the greatest number using nested if.

WAP to input value of x and n and print the series of x^n along with its sum.
3
e.g x=2 n=5 (Output:x^0 x^1…x^n and sum)

4 WAP to input a number and check whether its prime number or not.

5 WAP to print Fibonacci series up to n terms, also find sum of series.

6 WAP to print the given patterns.

7 WAP to print a string and the number of vowels present in it.

WAP to input a list of numbers and search for a given number using linear search./
8
binary search.
WAP that rotates the elements of a list so that the element at first index moves to
9 the second index, the element at second index moves to the third index and so on
and the element at last index moves to the first index.
Write a program to sort a list using bubble sort and produce sorted list./bubble sort
10
for dictionary keys
Write a menu driven program which will have following functions that takes a
number

11 i) Digisum() – returns sum of digits.


ii) rev() – reverse of a number and also print whether a number is palindrome
or not.
Write function div3and5() that takes 10 elements numeric tuple and return the sum
12
of elements which are divisible by 3 and 5
Write a function that receives two numbers and generates random number from
13 that range. Using this function the main program should be able to print 3 numbers
randomly.
Write a python program to maintain book details like book code, book title and
14 price using stacks data structures? (implement push(), pop() and traverse()
functions)
Write a python program to read a file named “article.txt”, count and print the
following:
a) length of the file(total characters in file)
b) total alphabets

15 c) total upper case alphabets


d) total lower case alphabets
e) total digits
f) total spaces
g) total special characters
WAP that copies a text file “source.txt” onto “target.txt” barring the lines starting
16
with a ”@” sign.
A file contains a list of telephone numbers in the following form:
Ashwin 9988776655
17
Shweta 9994445554
WAP to read a file and display its contents in two columns.
WAP that reads characters from the keyboard one by one. All lowercase characters
18 get stored in the file “lower”, all uppercase characters get stored inside a file
“UPPER” and all other characters inside “others”.
Python file/program for interactive binary data file handling (includes
19
insert/search/update/delete operation)

20 Reading and Writing to CSV file.

Write A Program To Integrate SQL With Python By Importing The Mysql


21
Module.

22 Take A Sample Of 10 Phishing Emails And Find The Most Common Words.

23 MySQL Queries I

24 MySQL Queries II

Write A Program To Connect Python With MySQL Using Database Connectivity


25 And Perform The Following Operations On Data In Database: Fetch, Update And
Delete The Data.
QUESTION-1
WAP to input a year and check whether the year is leap year or not.
CODE:

OUTPUT :

QUESTION-2
WAP to input 3 numbers and print the greatest number using nested it .
CODE:

You might also like