Python Basics
Python Basics
FILE
COMPUTER SCIENCE(083)
NAME: YUKTI
ROLL NO: 32
ADMISSION NO:4477
ACADEMIC YEAR:2024-25
PYTHON BASICS
01: Input two numbers from the user and display their sum and
product
OUTPUT:
OUTPUT:
03:Find the output
yu
yuk
yukt
yukti OUTPUT:
OUTPUT:
06:Create a dictionary and use popitem() function
OUTPUT:
07: WAP to read a list of elements and modify it so that it does not
contain any duplicate element.
OUTPUT:
08: WAP to accept a string and print the string after capitalizing every
other letter in the string
OUTPUT:
Functions
09:WAP to calculate factorial of numbers between 1 and 5.
OUTPUT:
16:WAP to remove all the lines that contain the character ‘a’ in a file
and write it to another file.
19:Create a binary file with name and roll number. Search for a given
roll number and display the name, if not found display appropriate
msg.
OUTPUT: