0% found this document useful (0 votes)
6 views24 pages

1) Aprogram To Input 2 Points and Determine Its Location On The Graph

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)
6 views24 pages

1) Aprogram To Input 2 Points and Determine Its Location On The Graph

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

1)aprogram to input 2 points and determine its location on

the graph:

OUTPUT:

2)A program to generate the Fibonacci series till N:


OUTPUT:

3)A program to input a sentence and display longest word in


sentence along with its length:
OUTPUT:

4)A Program to accept a set of integers in a tuple and


display the numbers which are primes:
OUTPUT:

5)A Program to implement bubble sort:


OUTPUT:

6)A python program to implement insertion sort:


OUTPUT:

7)A program to create dictionary which accepts the marks in


5 subjects with subject as key and marks as values,
displaying the dictionary and the subject getting marks 90
and above:

OUTPUT:

8) 08. Write a menu driven program to print following


patterns:
1) 5 4 3 2 1 2) 1 1 1 1 1 3) P P P P P P
5432 2222 YYYYYY
543 333 TTTT
54 22 HHH
5 1 00
N

OUTPUT:
9) A program to check number is special or not using
function fact ().

OUTPUT:

10) A program to accept a word and pass it to a function. The


function checks it is palindrome or not and returns 1 or 0.
OUTPUT:

11)A program to create a python program using countlines()


to count number of lines stored in file ‘story.txt’ which starts
with letter ‘A’:
OUTPUT:

12) a program to create a python program using function


count () to count number of ‘Me’ and ‘My’ words present in
text file ‘sample.txt’.:
OUTPUT:
13) A program to create a python program to read a text file
‘ABC.txt’ to count all vowels, uppercase, lowercase
character present in the text file:

OUTPUT:
14) A program To create a python program to store some
integer as a list element in binary file ‘number.dat’ till the
user wants to open the file in appropriate mode to retrieve
and display the element:

OUTPUT:
15)To create a python program to create a file ‘holiday.csv’
to keep records of holiday package trips for different place
with their type, trip, days and trip cost:

OUTPUT:
16) To create a python program to implement stack
operations:
OUTPUT:
17) To create a menu driven python program using function
push (), pop () and display () to implement a stack program
that stores the name of book:
OUTPUT:
18) To create a python program to perform push and pop
operations with a stack of list containing integers writing
functions push(list) and pop(list):

OUTPUT:
19) To create a python program to create a csv file to get
item details (code, description, price) for multiple items
from user:

OUTPUT:
20) To create a binary file namely myfile.info and write a
string having two lines in it:

OUTPUT:

You might also like