0% found this document useful (0 votes)
2 views10 pages

Python Practical

The document outlines a series of practical programming exercises in Python, focusing on various concepts such as function arguments, operator precedence, recursion, lambda functions, arrays, lists, tuples, and dictionaries. Each practical includes an aim and requires the implementation of specific programs with input and output demonstrations. The exercises are numbered from 8 to 15, with instructions to separate outputs for different tasks.

Uploaded by

earncrypto165
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views10 pages

Python Practical

The document outlines a series of practical programming exercises in Python, focusing on various concepts such as function arguments, operator precedence, recursion, lambda functions, arrays, lists, tuples, and dictionaries. Each practical includes an aim and requires the implementation of specific programs with input and output demonstrations. The exercises are numbered from 8 to 15, with instructions to separate outputs for different tasks.

Uploaded by

earncrypto165
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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:-

You might also like