Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
20 views

Introduction To Python Programming

The document contains a practical file on Python programming submitted by a student. It includes questions on basic Python concepts like variables, data types, functions, modules, OOP etc. and the student's answers to the questions.

Uploaded by

Ananya Singh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Introduction To Python Programming

The document contains a practical file on Python programming submitted by a student. It includes questions on basic Python concepts like variables, data types, functions, modules, OOP etc. and the student's answers to the questions.

Uploaded by

Ananya Singh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

PYTHON PROGRAMMING

PRACTICAL FILE

SUBMITTED IN THE PARTIAL FULFILLMENT OF THE DEGREE OF

BACHELOR OF BUSINESS ADMINISTRATION(CAM)-214

(MAY 2023)

SUBMITTED BY:

ANANYA SINGH

ENROLLMENT NO. 01621001921

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.

ANANYA SINGH

Enroll no.:01621001921
CERTIFICATE

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


ANANYA SINGH 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  Enter two numbers and perform the floor division.
Introduction  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. Startswith() 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
SUBJECT-PYTHON PROGRAMMING
PAPER CODE-BBA (CAM)208

INTRODUCTION TO PYTHON PROGRAMMING

ANANYA SINGH
01621001921 Page 1
SUBJECT-PYTHON PROGRAMMING
PAPER CODE-BBA (CAM)208

Q1 ENTER TWO NUMBERS AND SHOW SWAPPING OF TWO


VARIABLES.

Q2. ENTER TWO NUMBERS AND SHOW FLOOR DIVISION.

ANANYA SINGH
01621001921 Page 2
SUBJECT-PYTHON PROGRAMMING
PAPER CODE-BBA (CAM)208

Q3. ENTER NUMBER AND PERFORM BITWISE OPERATION.

Q4. SHOW THE WORKING OF BREAK AND CONTINUE


STATEMENT.

ANANYA SINGH
01621001921 Page 3
SUBJECT-PYTHON PROGRAMMING
PAPER CODE-BBA (CAM)208

Q5. INPUT ANY NUMBER FROM USER AND CHECK IT IS EVEN


NO. OR NOT.

Q6. WRITE A PROGRAM TO CALCULATE THE NTH TERM OF


FABONACCI SERIES.

ANANYA SINGH
01621001921 Page 4
SUBJECT-PYTHON PROGRAMMING
PAPER CODE-BBA (CAM)208

Q7. STRING FUNCTIONS PERFORMED BELOW-

ANANYA SINGH
01621001921 Page 5
SUBJECT-PYTHON PROGRAMMING
PAPER CODE-BBA (CAM)208

2. MUTABLE AND IMMUTABLE OBJECT.

ANANYA SINGH
01621001921 Page 6
SUBJECT-PYTHON PROGRAMMING
PAPER CODE-BBA (CAM)208

Q1. LIST FUNCTIONS PERFORMED BELOW-

ANANYA SINGH
01621001921 Page 7
SUBJECT-PYTHON PROGRAMMING
PAPER CODE-BBA (CAM)208

Q2. TUPLE FUNCTIONS PERFORMED BELOW-

Q3. DICTIONARY FUNCTIONS-

ANANYA SINGH
01621001921 Page 8
SUBJECT-PYTHON PROGRAMMING
PAPER CODE-BBA (CAM)208

Q4. WRITE A PROGRAM TO FIND SUM OF ELEMENTS OF LIST

ANANYA SINGH
01621001921 Page 9
SUBJECT-PYTHON PROGRAMMING
PAPER CODE-BBA (CAM)208

3. CONCEPT OF FUNCTIONS

ANANYA SINGH
01621001921 Page 10
SUBJECT-PYTHON PROGRAMMING
PAPER CODE-BBA (CAM)208

Q1. CREATE PARAMETERIZED FUNCTION IN PYTHON AND


SHOW THE BASIC FUNCTIONALITY WITH FUNCTION.

Q2. ENTER A NUMBER AND POWER THEN COMPUTE THE


POWER USING AN EXPONENTIAL OPERATOR

ANANYA SINGH
01621001921 Page 11
SUBJECT-PYTHON PROGRAMMING
PAPER CODE-BBA (CAM)208

Q3. INPUT ANY NUMBER FROM USER AND CLACULATE


FACTORIAL OF A NUMBER.

Q4. CREATE FUNCTION AND PERFORM REQUIRED


ARGUMENT.

ANANYA SINGH
01621001921 Page 12
SUBJECT-PYTHON PROGRAMMING
PAPER CODE-BBA (CAM)208

Q5-a) CREATE MODULE AND IMPORT MODULE WITH BASIC


FUNCTIONALITY.

b) FUNCTIONS IN MODULE TO BE PERFORMED-

ANANYA SINGH
01621001921 Page 13
SUBJECT-PYTHON PROGRAMMING
PAPER CODE-BBA (CAM)208

Q6 IMPLEMENT MATH MODULE(sqrt().pi,ceil,floor,pow())

Q7. IMPLEMENT RANDOM MODULE.

ANANYA SINGH
01621001921 Page 14
SUBJECT-PYTHON PROGRAMMING
PAPER CODE-BBA (CAM)208

Q8. PROGRAM TO READ AND DISPLAY FILE CONTENT.

ANANYA SINGH
01621001921 Page 15
SUBJECT-PYTHON PROGRAMMING
PAPER CODE-BBA (CAM)208

4. OBJECT ORIENTED PROGRAMMING

ANANYA SINGH
01621001921 Page 16
SUBJECT-PYTHON PROGRAMMING
PAPER CODE-BBA (CAM)208

Q1. PROGRAM WITH CLASSES AND OBJECT?

Q2. PROGRAM ON NUMPY?

ANANYA SINGH
01621001921 Page 17
SUBJECT-PYTHON PROGRAMMING
PAPER CODE-BBA (CAM)208

Q3. PROGRAM ON ARRAY?

ANANYA SINGH
01621001921 Page 18

You might also like