Python Programming Lab (2018408) as per SBTE Syllabus

Python Programming Lab (2018408) as per SBTE Syllabus

1.Write a program to demonstrate basic data type in python. 

2. Write a program to compute distance between two points taking input from the user.

3. Write a python program Using for loop, write a program that prints out the decimal equivalent of 1+½+1/3…..1/n

4. a. Write a Python program to find first n prime numbers. 

4. b. Write a program to demonstrate list and tuple in python.

5. a. Write a program using a for loop that loops over a sequence. 

5. b. Write a program using a while loop that asks the user for a number, and prints a countdown from that number to zero.

6. a. Write a Python Program to add matrices. 

6. b. Write a Python program to multiply matrices.

7. a. Write a Python program to check if a string is palindrome or not. 

7. b. Write a Python program to Check if a Sub string is Presenting a Given String.

8. a. Write a Python program to Extract Unique values dictionary values. 

8. b. Write a Python program to find the sum of all items in a dictionary.

9. a. Write a Python program to read file word by word. 

9. b. Write a Python program to Get number of characters, words,spaces and lines in a file.

10. a.Write a Python program f o r Linear Search. and Write a Python program for Binary Search (Recursive and Iterative). 

Post a Comment

0 Comments