PYTHON LAB MANUAL
1. Design a script in Scratch to make a sprite to draw geometrical shapes such as Circle, Triangle, Square, Pentagon.
2. Design a script in Scratch to make a sprite to ask the user to enter two different numbers and an arithmetic operator and then calculate and display the result.
3). coming soon to available this problem
4). Design a Python script to convert a Binary number to Decimal number and verify if it is a Perfect number.
5. Design a Python script to determine if a given string is a Palindrome using recursion
6. Design a Python script to sort numbers specified in a text file using lists.
7. Design a Python script to determine the difference in date for given two dates in YYYY:MM:DD format 0 <= YYYY <= 9999, 1 <= MM <= 12, 1 <= DD <= 31 following the leap year rules. import datetime
8. Design a Python Script to determine the Square Root of a given number without using inbuilt functions in Python.
9. Design a Python Script to determine the time difference between two given times in HH:MM:SS format. 0 <= HH <= 23, 0 <= MM <= 59, 0 <= SS <= 59
10. Design a Python Script to find the value of Sine, Cosine, Log, PI, egof a given numberusing infinite series of the function.
11. Design a Python Script to convert a given number to words
12. Design a Python Script to convert a given number to roman number.
13. Design a Python Script to generate the frequency count of words in a text file.
14. Design a Python Script to print a spiral pattern for a 2 dimensional matrix.
15. Design a Python Script to implement Gaussian Elimination method.
16. Design a Python script to generate statistical reportsMinimum, Maximum, Count, Average, Sumetc) on public datasets.(this is csv file program goto see in my website pandas in python problems )
17. Design a Python script using the Turtle graphics library to construct a turtle bar chart representing the grades obtained by N students read from a file categorising them intodistinction, first class, second class, third class and failed.
18. Write a Python program to match a string that contains only upper and lowercase letters, numbers, and underscores.
19. Write a Python program to convert a date of yyyy-mm-dd format to dd-mm-yyyy format.
20. Write a Python program to replace all occurrences of space, comma, or dot with a colon.
21. Write a Python program to check that a string contains only a certain set of characters in this case a-z, A-Z and 0-9
22. Write a Python program to find the occurrence and position of the substrings within a string.
23. Design a Python script on oop‟s concepts: Class variables and instance variable i) Robot ii) ATM
Machine
VIVA QUESTIONS FOR EXTERNAL AND INTERNAL LAB EXAMINATIONS:
VIRTUAL LABS FROM IIITHYDERABAD PROBLEM SOLVING