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

Akash Python Programs

This document outlines 7 programming tasks, including creating functions to reverse integers, shift a list left, find word lengths in a string, count long uppercase words in a dictionary, analyze character types in a text file, display words ending in 'e' from a text file, create and update records in a binary file, and implement stack operations. The document provides the task descriptions and expected output for each programming problem.
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)
99 views

Akash Python Programs

This document outlines 7 programming tasks, including creating functions to reverse integers, shift a list left, find word lengths in a string, count long uppercase words in a dictionary, analyze character types in a text file, display words ending in 'e' from a text file, create and update records in a binary file, and implement stack operations. The document provides the task descriptions and expected output for each programming problem.
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/ 10

PROGRAM :Read a text file line by line and display

each word separated by a '#'.

OUTPUT
PROGRAM : WAP to create a user define function
Reverse num (n) which will accept an
integer number as an argument and return
the reverse of that number

OUTPUT
PROGRAM : WAP to input a list of integers from user
and then create a UDF L Shift which will shift contents
of n times to the left where is input list passed as a
parameter and n is an integer variable with which list
is shifted.

OUTPUT
PROGRAM : WAP to create a user defined
function Len Words (String) that
takes a string as an argument and returns
a tuple containing length of each word in a string

OUTPUT
PROGRAM : WAP to create a user defined function
count word in Python that takes dictionary as an
argument and displays the names in uppercase longer
than 5 characters

OUTPUT
PROGRAM : Read a text file and display the number of
vowels/consonants/uppercase/lowercase characters in
the file.

OUTPUT
PROGRAM : WAP to Read a file line by line and print it.

OUTPUT
PROGRAM : Write a program to read data from the
text file "Story.txt" and display those words which are
ending with 'e

OUTPUT

PROGRAM : PYTHON PROGRAM TO CREATE AND


UPDATE RECORDS IN A BINARY FILE
OUTPUT

PROGRAM : PYTHON PROGRAM TO IMPLEMENT


STACK OPERATION
OUTPUT

You might also like