INDIAN INSTITUTE OF INFORMATION
TECHNOLOGY, BHOPAL (IIIT-BHOPAL)
Department of Information Technology
IT WORKSHOP (ITW LAB)
(IT - 216)
SUBMITTED BY: UNDER SUPERVISION OF:
Aryan Dixit SUBJECT COORDINATOR: DR. AMIT GUPTA
23U03116 ASSISTANT PROFESSOR, IT Department
IT 3rd SEMESTER (Section 2) IIIT BHOPAL
INDEX
S. Experiment Page Remark
No. No.’s
1. Assignment 1 1-5
(Control Statements and Loops)
(1) Write a python program to check if the given
character is a vowel or consonant.
(2) Write a python program to check whether a
given character is a digit or not. If the given
character is a digit, check whether or not it is
less than 5.
(3) Write a python program to print all the natural
numbers from 1 to n in the reverse order.
(4) Write a python program to check whether a
given year is a leap year or not.
(5) Write a python program to print the Fibonacci
Series up to the number entered by the user.
2. Assignment 2 6-9
(Sting, List, Tuple and Dictionary)
(1) Write a python program to check whether or not a
given string is a palindrome.
(2) Create a list and perform the following methods in
python.
insert() (2) remove() (3) append() (4) len() (5) pop()
(6)clear()
(3) Create a tuple and perform the following methods in
python.
Add items (2) len() (3) check for item in tuple
(4) Access items
(4) Create a dictionary and apply the following methods
in python.
Print the dictionary items (2) access items (3) change
values use len()
3. Assignment 3 9-13
(Function and Module)
(1) Write a program in python by taking a function
called gcd that takes parameters a and b and
returns their greatest common divisor.
(2) Write a python program to develop (i) Call by
Value (ii) Call by Reference
(3) Write a python program to swap two numbers by
using user-defined functions.
(4) Write a python program to perform the binary
search.
(5) Write a python program to print the factorial of a
number by using a module.
4. Assignment 4 13-17
5. Assignment 5
6. Assignment 6
7. Assignment 7
Indian Institute of Information Technology Bhopal
Information Technology Workshop
Branch: IT (Section-2)
Assignments of Python Programming
Submitted by Submitted to
Aryan Dixit Dr. Amit Gupta
23U03116 Assistant Professor