Professional Documents
Culture Documents
Assignment 2
Assignment 2
Assignment-2
DATE- 25/01/2024
1) Print the following pattern
a) b) c)
. .
1 1 *
1 2 1 ***
d) 1 3 3 1 f). *****
e)
. . 1 4 6 4 1 *******
1 5 10 10 5 1 *********
2) Create a tuple and perform the following methods 1) Add items 2) len() 3) check for item in
tuple 4) Access items.
3) Write a Python program to enter name and percentage marks in a dictionary and display
information on the screen.
4) Write a python program to find largest of three numbers.
5) Read two integer numbers from the keyboard and print minimum value using ternary operator