Python 1 To 16 No Modify
Python 1 To 16 No Modify
2. Implement the python program to read data from user and display data on screen.
PRACTICAL: 3
Implement a python programs using following operators:
1. Arithmetic
2. Comparison
3. Assignment
4. Bitwise
5. Membership
PRACTICAL: 4
Implement a python program to demonstrate the use of following conditional statements: if
PRACTICAL: 5
Implement a python program to demonstrate the use of following looping statements:
1. while loop
CODE:
number = 1
if number % 2 == 0:
print(number)
number += 1
OUTPUT:
2. for loop
3. nested loop
CODE:
temp = num
rev = 0
dig = num % 10
num = num // 10
if(temp == rev):
else:
PRACTICAL: 6
Implement python program to demonstrate the use of loop control statements. [continue,
pass, break, else].
PRACTICAL: 6.1
CODE:
for i in range(5):
if i==3:
break
print(i)
OUTPUT:
PRACTICAL: 6.2
CODE:
x=30
y=29
if x>=y:
if x==y:
else:
else:
PRACTICAL: 7
Implement a python program to perform following operations on the List: Create a List,
Access List
7.1
7.2
PRACTICAL: 8
Implement Python program to demonstrate the use of built-in functions/methods on List
(AnyEight Functions/methods).
PRACTICAL: 9
Implement python program to perform following operations on the Tuple: Create a Tuple,
AccessTuple, Print Tuple, Delete Tuple, Convert tuple into list and vice-versa.
9.1
9.2
PRACTICAL: 10
Implement a python program to perform following operations on the Set: Create a Set,
Access Set, Update Set, Delete Set.
10.1
10.2
PRACTICAL: 11
Implement a python program to perform following functions on Set: Union, Intersection,
Difference, Symmetric Difference.
PRACTICAL: 12
Implement a python program to perform following operations on the Dictionary: Create a
Dictionary, Access Dictionary, Update Dictionary, Delete Dictionary, Looping through
Dictionary, Create Dictionary from list.
12.1
12.2
12.3
PRACTICAL: 13
Implement user defined function for given problem:
1. Function positional/required argument
PRACTICAL: 14
Implement user defined function for given problem: Function positional/required
argument, Function with keyword argument, Function with default argument, Function with
variable lengthargument.
14.1
14.2
PRACTICAL: 15
Write Python program to demonstrate use of following advanced functions: lambda, map,
reduce.
15.1
15.2
15.3
PRACTICAL: 16
Write a python program to create and use a user defined module for a given problem.