Python Practical
Practical No.8
Aim:-Write a program to demonstrate types of function
arguments
a) Key word argument
Output:-
b) Arbitrary arguments
Output:-
(this is practical no.8b write it on different page, don’t write 8a and
8b on the same page)
Practical No.9
Aim:- Write a python program to demonstrate the Precedence and
associativity of operators
a) Demonstrate operator Precedence
(both input and output is there )
b) Demonstrate right-left associativity
Output:-
Practical No.10
Aim:-Write suitable python program to implement recursion for
problem such as Fibonacci series, Factorials, Tower of Hanoi etc.
Program to find Factorials using recursion
Output:-
Practical No.11
Aim:- Write Python program to implement and use lambda
function in python
Program for square using lambda function
(both input and output)
Practical No.12
Aim:- Write a python program to create and manipulate array in
Python. Also demonstrate use of slicing and indexing for accessing
elements from the array.
(both input and output)
Practical No. 13
Aim:- Write a program to implement list in Python for suitable
problem. Demonstrate various operation on it.
Output:-
Practical No.14
Aim:- Write a program to implement tuple in Python for suitable problem.
Demonstrate various operation on it
Output:-
Practical No.15
Aim:- Write a program to implement dictionary in Python for suitable problem.
Demonstrate various operation on it.
Output:-