
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































PRACTICAL- 1 AIM - Write a program to search an element in a list and display the frequency of element present in list and their location using Linear search SOFTWARE USED - IDLE (PYTHON 3.8 64 - bit) INPUT OUTPUT
PRACTICAL- 2 AIM- Write a to search an element in a list and display the frequency of element present in list and their location using Binary Search SOFTWARE USED- IDLE (PYTHON 3.8 64 - bit) INPUT OUTPUT
PRACTICAL- 4 AIM - Write a program to input n numbers in tuple and pass it to function to count how many even and odd numbers are entered SOFTWARE USED - IDLE (PYTHON 3.8 64 - bit) INPUT OUTPUT
PRACTICAL- 5 AIM - Write a program to function with key and value, and update value at that key in dictionary entered by user SOFTWARE USED - IDLE (PYTHON 3.8 64 - BIT) INPUT OUTPUT
PRACTICAL- 6 AIM - Write a program to pass a string to a function and count how many vowels present in the string SOFTWARE USED - IDLE (PYTHON 3.8 64 - BIT) INPUT OUTPUT
PRACTICAL- 7 AIM - Write a program to generator that generates random numbers between 1 and 6 using user defined function SOFTWARE USED - IDLE (PYTHON 3.8 64 - BIT) INPUT OUTPUT(S)
print("**** QUEUE DEMONSTRATION ******") print("1. ENQUEUE ") print("2. DEQUEUE") print("3. PEEK") print("4. SHOW QUEUE ") print("0. EXIT") ch = int(input("Enter your choice :")) if ch==1: val = int(input("Enter Item to Insert :")) Enqueue(Q,val) elif ch==2: val = Dequeue(Q) if val=="Underflow": print("Queue is Empty") else: print("\nDeleted Item was :",val) elif ch==3: val = Peek(Q) if val=="Underflow": print("Queue Empty") else: print("Front Item :",val) elif ch==4: Show(Q) elif ch==0: print("Bye") break **OUTPUT **** QUEUE DEMONSTRATION ********
Enter Item to Insert : **** QUEUE DEMONSTRATION ******
PRACTICAL- 9 AIM - Write a program to implement python string functions SOFTWARE USED - IDLE (PYTHON 3.8 64 - BIT) INPUT OUTPUT
PRACTICAL- 10 AIM - Write a program to read and display file content line by line with each word separated by #. SOFTWARE USED - IDLE (PYTHON 3.8 64 - BIT) INPUT OUTPUT