0% found this document useful (0 votes)
17 views27 pages

PART-1 New Corrected Practical File - 2024 (1-15)

Shshsj

Uploaded by

poonamchy44
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)
17 views27 pages

PART-1 New Corrected Practical File - 2024 (1-15)

Shshsj

Uploaded by

poonamchy44
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/ 27

Question : 1

Python program to find the factorial of a number provided by


the user.

INPUT

Output

PAGE NO / 1 / P. FILE
Question : 2

Program to check if a number is prime or not

INPUT

OUTPUT

PAGE NO / 2 / P. FILE
Question : 3

Write a program to check the given number is perfect or not

Input

Output

PAGE NO / 3 / P. FILE
Question : 4

Python Program to reverse a number using Functions

INPUT

OUTPUT

PAGE NO / 4 / P. FILE
Question -5
Write a program to enter a number and check whether the number is Palindrome
or not

Input

Output

PAGE NO / 5 / P. FILE
Question No-6
Write a program to enter 10 elements of Integer type and display the greatest
element.

Input

Output

PAGE NO / 6 / P. FILE
Question No-7
Menu driven program to display various operations on list

Input

PAGE NO / 7 / P. FILE
PAGE NO / 8 / P. FILE
PAGE NO / 9 / P. FILE
Output

PAGE NO / 10 / P. FILE
Question No-8
Menu driven program to display various operations on Tuple

Input

PAGE NO / 11 / P. FILE
PAGE NO / 12 / P. FILE
OUTPUT

PAGE NO / 13 / P. FILE
Question No-9
WRITE AN INTERACTIVE MENU DRIVEN PROGRAM TO PERFORM VARIOUS
OPERATIONS ON A DICTIONARY

Input

PAGE NO / 14 / P. FILE
Output

PAGE NO / 15 / P. FILE
Question No-10

Write an interactive menu driven program to implement stack

Input

PAGE NO / 16 / P. FILE
PAGE NO / 17 / P. FILE
OUTPUT
Pushing / Insertion

Peek / top

PAGE NO / 18 / P. FILE
Display / Traversal

Popping / Deletion

PAGE NO / 19 / P. FILE
Question No-11

Write a program to calculate the maximum value from within all


of the values tuples at the same index.

INPUT

OUTPUT

PAGE NO / 20 / P. FILE
Question No-12

Write a function that takes n and then returns a randomly generated


number having exactly n digits (not starting with zero)

INPUT

OUTPUT

PAGE NO / 21 / P. FILE
PAGE NO / 22 / P. FILE
Question No-13

# Write a program that copies a text file "source .txt" onto


"target.txt" barring the lines starting with a "@" sign.

INPUT

PAGE NO / 23 / P. FILE
Output

PAGE NO / 24 / P. FILE
Question No-14

# write a program to remove all the lines that contains the


character 'a'in this file and write other lines into another file

INPUT

PAGE NO / 25 / P. FILE
OUTPUT

PAGE NO / 26 / P. FILE
Question No-15

Write a method in Python to read lines from a text file


India.txt to find and display the occurrence of the word "India"

INPUT

Output

PAGE NO / 27 / P. FILE

You might also like