GUJARAT TECHNOLOGICAL UNIVERSITY
GRADUATE SCHOOL OF ENGINEERING AND TECHNOLOGY
Course Laboratory Experiment List (INDEX)
CourseCode & Name 1618004-Introduction to Python Programming
Acacemic Term: AY-2024-25-Odd Term Semester
Student Enrollment No: Batch:
Student Name:
Sr CO /PO / Date of
Objective/Aim
No PSO Date of Assigned Completion
Install python in Windows & Install and
1 CO-01
verify various packages in python
Write a basic program in python
a) Print “Hello World” message
b) Write a program to demonstrate different
number data types in python
2 CO-01
c) Write a program to perform different
arithmetic operations on numbers in python
d) Find Maximum and Minimum Number
from given 3 numbers
a) Write a program to convert numbers from
octal, binary, and hexadecimal system
b) A python program to create a byte type
3 array, read and display the elements of the CO-01
array
c) A python program to create a bytearray
type array and retrieve elements.
a) Python a program to Find the Square Root
b) Python a program to Calculate the Area of
a Triangle, Square
c) Python a program to Solve Quadratic
Equation
ax2 + bx + c = 0
d) Python program to Convert Celsius to
Fahrenheit
e) Write program to calculate Simple and
Compound Interest
4 f) Write a program for Pythagorean Theorem CO-02
g) Write a program to swap two variable
h) Write a program to calculate gross salary
of employee with following assumption
(allowance & deduction)
Scale 15600, Grad pay 6000
DA = 20% of Basic, HRA = 12% of Basic, PF =
10% of Basic,
TA = 6.50% of Basic.
Net Pay = Basic + DA + HRA + TA
Gross Pay = Net Pay - PF.
a. Write a Program to check whether a
number is even or odd.
b. Write a program to whether a number is
divisible by 2 and 3 both.
c. A student will not be allowed to sit in
exam if his/her attendance is less than 75%.
Take following input from user
Number of classes held
Number of classes attended.
And print
percentage of class attended
Is student is allowed to sit in exam or not.
d. Write a program to check if a year is leap
year or not.
5 If a year is divisible by 4 then it is leap year CO-02
but if the year is century year like 2000,
1900, 2100 then it must be divisible by 400.
e. A GTU has following rules for grading
system:
Below 35 - FF
35 to 39 - DD
40 to 44 - CD
45 to 54 - CC
55 to 64 – BC
65 to 74 – BB
75 to 84 - AB
Above 85 – AA
Ask user to enter marks and print the
corresponding grade.
a. Write a Python function to find the Max of
three numbers
6 CO-02
b. Python Program to Calculate the Power
using Recursion
a. A program to read the contents of a file.
b. Write a python program to count words,
characters, and spaces from text file
c. Write a python program to check whether
string is palindrome or not
d. A program to copy the contents of one file
7 into another. CO-02
e. A program to read a text file and print all
the numbers present in the text file.
f. A program to append the contents of one
file to another file.
g. A program to read a file and capitalize the
first letter of every word in the file.
a. Write a python program to construct the
following pattern using nested for loop:
*
**
***
****
8 CO-02
*****
*****
****
***
**
*
a) Demonstrate lambda functions in Python
with suitable example programs.
b) Take any one of Data Base and Plot Bar,
Pie, scatter graph using python
9 c) Write a python program to create a plotting
CO-02
of years of compounding v/s value of principal
using pyplot library. Assume reasonable values
for principal, interest rate and years.
10 Case Study: Real Time Scenario CO-02
Date of File Submission:___________________
Course Cordinator:________________
J-1
AY-2024-25-Odd Term
GUJARAT TECHNOLOGICAL UNIVERSITY
GRADUATE SCHOOL OF ENGINEERING AND TECHNOLOGY
PRACTICAL - 1
CourseCode & Name 1618004-Introduction to Python Programming
Acacemic Term: AY-2024-25-Odd Term Semester
Student Enrollment No: Batch:
Student Name:
AIM/Objective:
1
Expected Outcome:
1
Student Report with Experiment Results and Analysis
Experimental report will inlcude:
- Resources Used, Experimental Setup, Program Code etc
- Analysis on results
- Concluding Remarks & Findings
Inadequate
Evaluation Rubrics Marks
0%
The understanding of the Student regarding the
1 2
objective of the given practical
2 Installation of Software or Hardware Setup level 2
3 Quality of the Analysis done 2
Quality of the report including concluding reamrks and
4 2
Findings
Question & Answer related to given practical & timely
5 2
submission
10
Total Marks Obtained Out of 10
Date of Completion:___________________
Course Cordinator:________________
Y
ng
Semester 1
Marks Sign
_________
Y
ng
CO/PO/PSO
Good Excellent
50% 100%
_________