Loading [MathJax]/extensions/Safe.js

Python Slip 3

SLIP3 Q1. Write a python program to show use of finally clause of exception handling. Solution:

Q2. Write a program that returns a list that contains only the elements that are common between the lists (without duplicates). Make sure your program works on two lists of different sizes. Solution:Q2. Write a python program which accepts file name and word to be searched in file. Display line numbers which contain given word and total occurrences of it. Suppose sample file is test.txt and it contains Rahul Sonawane November july may march june Tal nsk Rahul Dist Nashik Rahul

0 Comments:

Post a Comment