Python Assignments
Python Assignments
Q.1 Explain different Primitive and Non-Primitive data types with syntax and example. Also
list out important properties and methods of List, Tuple, sets and dictionary.
Q.2 What are different control flow statements? Write a program to check a given number is
larger, smaller or equal.
Q.3 Define for loop and write a code to fetch the data from List, Tuple, set and dictionary
using it.
Q.4 Define while loop and write a program to find factorial of given number.
Q.5 Comment on pass, continue and break statements with example.
Q.6 Write a Not on Following (Use syntax and example)
a Lambda()
b Map()
c Reduce()
d Filter()
e Generator
f Decorator
g User defined functions
h Any 20 Built-in-functions
Q.7 What is exception handing and different errors? Write a program to handle
ZerroDivisionError.
Q.8 Write a program to create your own exceptions.
Q.9 Write a steps to create your own module (Arithmetic) and package (Operator)
Q.10 Explain different python namespaces