0% found this document useful (0 votes)
57 views53 pages

Computer Practical

This document is a computer practical file belonging to Ayush Verma of class 12. It contains programs organized into sections on Python basics, lists/tuples/dictionaries, user defined functions, and file handling. Each section lists several programs with corresponding output. There are also tables showing sample queries and commands for handling data.

Uploaded by

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

Computer Practical

This document is a computer practical file belonging to Ayush Verma of class 12. It contains programs organized into sections on Python basics, lists/tuples/dictionaries, user defined functions, and file handling. Each section lists several programs with corresponding output. There are also tables showing sample queries and commands for handling data.

Uploaded by

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

COMPUTER PRACTICAL FILE

AYUSH VERMA
XII-B
ROLL NO- 07
SECTIONS
 Python Basic Programs
 List, Tuples and Dictionary Programs
 User defined functions
 File Handling
Python Basic Programs
Program # 1
Test for Palindrome Number
Output
Program # 2
Generation of prime numbers in a given interval
Output
Program # 3
Determination of the roots of a quadratic equation
Output
Program # 4
Summation of ‘n’ natural numbers
Output
Program # 5
Generation of square multiplication table
Output
Program # 6
Reversal of digits of a multi-digit number
Output
Program # 7
Generation of Fibonacci Numbers
Output
Program # 8
Generation of Pythagorean Triplets
Output
List, Tuples, Dictionary and User Defined
Programs

Program # 1
Identification of elements in the given list
Output
Program # 2
Generation of perfect squares
Output
Program # 3
Reversal of sequence
Output
Program # 4
Bubble sorting
Output
Program # 5
Insertion sorting
Output
Program # 6
Designing of basic calculator
Output
File Handling Programs
Program # 1
Determination of the size of a file
Output
Program # 2
Determination of number of lines in a file
Output
Program # 3
Data Handling
Output
Table #1

Queries
Command #1
Command #2

Command #3
Command #4

Command #5
Command #6

Command #7

Command #8
Command #9

Command #10
Table #2

Queries
Command #1
Command #2

Command #3
Command #4

Command #5
Command #6

Command #7
Command #8

Command #9
Command #10
Table #3

Queries
Command #1
Command #2

Command #3
Command #4

Command #5
Command #6

Command #7

Command #8
Command #9

Command #10

You might also like