You are on page 1of 18

PYTHON PROGRAMMING

PRACTICAL FILE

SUBMITTED IN THE PARTIAL FULFILLMENT OF THE DEGREE OF


BACHELOR OF BUSINESS ADMINISTRATION(CAM)-214

(MAY 2023)

SUBMITTED BY:TANISHQ SHARMA

ENROLLMENT NO. 01721001921

UNDER THE GUIDANCE OF

Dr. PARMINDER KAUR

(ASSOCIATE PROFESSOR, IT DEPARTMENT)

IDEAL INSTITUTE OF MANAGEMENT & TECHNOLOGY

(AFFILIATED TO GURU GOBIND SINGH INDRAPRASTHA UNIVERSITY, DELHI)


ACKNOWLEDGEMENT

I am preparing this practical file of Python programming for the program of


Bachelor of Business Administration(CAM) for Ideal Institute of Management &
Technology, Affiliated to Guru Gobind Singh Indraprastha University.

It has been a great challenge but a plenty of learning and opportunities to gain a
huge amount of knowledge on the way of preparing this file. I could not have
completed my work without the constant guidance of Dr. Parminder Kaur, my
faculty, who helped me along the way and was always prepared to give me
feedback and guidelines whenever I needed it.

STUDENT NAME:
TANISHQ SHARMA

Enroll no.:01721001921
CERTIFICATE

This is to certify that Practical file of Python Programming which is submitted


by TANISHQ SHARMA in partial fulfillment of the requirement for the award of
degree of Bachelor of Business Administration to Ideal Institute of Management
and Technology (affiliated to GGSIP University, Delhi) is a record of the
candidate’s own work carried out by her under my supervision. The matter
embodied in this file is bonafide and has not been submitted for the award of any
other degree.

.………………
Dr. Parminder
( Associate Professor)
INDEX:- Python Programming

S.no. Name of the Practical


1.  Enter two numbers and perform swapping.
Python Programming
Introduction  Enter two numbers and perform the floor division.

 Enter no and perform bitwise operation.

 Show the working of break and continue statement

 Input any number from user and check it is Even no. or not

 Write a program to calculate the nth term of Fibonacci series

 Perform following with string

i. Slicing

ii. Membership

iii. Capitalize

iv. Lower and upper

v. Isdigit

vi. Split

vii. Startwith() and Endwith()

2.  Perform following with list


Mutable and
Immutable Object i. Append

ii. Count

iii. Remove

iv. Pop

v. Sort

vi. Reverse

 Perform following with tuples

i. Count

ii. Index

iii. Len

iv. Min and max


v. +&*

 Perform following with dictionary

i. Get

ii. Update

iii. Copy

iv. Delete

v. clear

 Write a program to find sum of elements of List


3. Concept of function  Create parameterized function in python and show the basic
functionality with function

 Enter a number and power then compute the power using an


exponential operator.

 Input any number from user and calculate factorial of a number

 Create function and perform Function argument

i. Required argument

ii. Keyword argument

iii. Default argument

iv. Variable length or arbitrary argument

 Create Module and import module with basic functionality

i. Renaming

ii. From…

iii. Dir( )

iv. Platform

 Implement Math module(sqrt(), pi,ceil,floor,pow())

 Implement Random module

i. random( )

ii. randint( )

iii. randrange( )

iv. randchoice( )

 Program to read and display file content.


4. Object Oriented  Program with classes and object
Programming
 Program on numPy

 Program on Array
Python programming introduction

 Enter two no and perform swapping

 Enter two no and show floor divison

 Enter no and perform bitwise operator


 Show working of break and continue statement

 Input any no from user and check it is even or not


 Write the program to calculate the nth term of fibonnaci series

 Perform Following With String


i. Slicing
ii. Membership
iii. Capitalize
iv. Lower and upper
v. Isdigit
vi. Split
vii. Startwith() and Endwith()
2. MUTABLE AND IMMUTABLE OBJECTS

1.LIST

a) Append

b) Count
c) REMOVE

D) POP

E) SORT

F)REVERSE
2.TUPPLE

a) Count

b) INDEX

C) LEN

D) MIN AND MAX


E) + & *

3.DICTIONARY

a) GET

B) UPDATE

C) COPY

D)DELETE
E)CLEAR

4.PROGRAMTO FIND SUM OF ALL


ELEMENTS OF A LIST

Concept of function

 Create a parameterized function and show the basic function and


personality
 Enter a number and power then compute the power using an exponential
operator

 Input any number from user and calculate factorial of a number

 Create function and perform function argument


i. Required argument
ii. Keyword argument
iii. Default argument
iv. Variable length or arbitrary argument
 Create module and import module with basic functionality

i. Renaming

ii. FROM
iii. Dir()

iv. Platform

 Implement math module(sqrt(),pi,ceil,floor,pow())

 Implement random module


 Program to read and display file content

You might also like