Practical File Questions
Practical File Questions
Program 2: Input two numbers and display the larger / smaller number.
Program 3:Input three numbers and display the largest / smallest number
Program 12: Input a list of numbers and swap elements at the even
location with the elements at the odd location.
Program 13: Input a list/tuple of elements, search for a given element in the
list/tuple.
Program 14: Input a list of numbers and find the smallest and largest
number from the list.
Program 15: Create a dictionary with the roll number, name and marks of n
students in a class and display the names of students who have scored
marks above 75.
Program 18: Write a Python script to check whether a given key already
exists in a dictionary.
Program 19: Write a Python script to generate and print a dictionary that
contains a number (between 1 and n) in the form (x, x*x).
Sample Dictionary ( n = 5) :
Expected Output : {1: 1, 2: 4, 3: 9, 4: 16, 5: 25}
Program 20: Write a Python program to get the maximum and minimum
values of a dictionary.