Vidyavardhini’s College of Engineering & Technology
Department of Computer Engineering
Academic Year : 2024-25
Assignment - 2
Sub: CSL405/ Skill Based Lab: Python Programming Year/Sem:- SE/ IV
Date: Submission Date: 18/02/2025
Course Outcome:
CSL405.2: Use features of files, directories and regular expression in python for file manipulation
Q.N Question Bloom
o. Level
1 Imagine you are developing a feature for text-analysis software. One of the Apply
functionalities you need to implement is to check if a list of specific keywords
exists within a given file. The file could be a text document, and the user
provides a list of words to search for. Your program should read the file and
identify which words from the list are present in the file and which are not.
2 Consider a text string containing multiple email addresses. Design following Apply
functionalities using Regular Expressions.
1. Find all email addresses in the text
2. Search for the first email address in the text
3. Replace the email address of yahoo with gmail