Practical file(upd)
Practical file(upd)
Practical file(upd)
10. number, name and marks. Input a roll number and update
the marks.
Write a program to add (PUSH), delete (POP) and display
11. the records using list through Stack.
Write a program to display unique vowels present in the
12. given word using stack.
Write a Python program that prints the first n rows of
13. Pascal's triangle.
Practical File on
Computer Science(083)
Session: 2024-2025
TOPICS COVERED:
Python My SQL
S. No Topic T. Sign
Write a program that performs the following operations
1. on a string:
(a)Prompt the user to input a string.
(b) Extract all the digits from the string.
(c) If there are digits in the inputted string:
• Calculate and display the sum of the digits.
• Also display:
The original string
The digits
The sum of the digits
Write a program with a user-defined function with string
2. as a parameter which replaces all vowels in the string with
“*”
Write a python program to remove duplicates from a list.
3. A = [10, 20, 30, 20, 10, 50, 60, 40, 80, 50, 40]
(b) Write all the records in one single go onto the CSV.
Input:
Output:
Write a Python program that create a binary file with roll
number, name and marks. Input a roll number and update
the marks
Input:
Output:
Write a menu-driven program to demonstrate four major
operations performed on a table through MYSQL-Python
connectivity.
Input:
Write a program to demonstrate all read operations using
MYSQL- Python connectivity.
Input:
Create a student table and insert data. Implement the
following SQL commands on the student table: