Practice Question 17 In this question, we will create a function that filters a text file to find and display words like “Python3”, “Win10”, or “Sector7G”—words that contain at least…
Mahesh Verma
Mahesh Verma
I have been working for 10 years in software developing field. I have designed and developed applications using C#, SQL Server, Web API, AngularJS, Angular, React, Python etc. I love to do work with Python, Machine Learning and to learn all the new technologies also with the expertise to grasp new concepts quickly and utilize the same in a productive manner.
-
-
Python Programs
Python: Count Uppercase Letters in a Text File (Solved)
by Mahesh Vermaby Mahesh VermaPractice Question 16 In this question, we will learn how to write a function that reads a text file and counts the total number of Uppercase (Capital) letters. This is…
-
Python Programs
Python: Delete Lines Starting with a Specific Character (Solved)
by Mahesh Vermaby Mahesh VermaPractice Question 15 In this question, we will learn how to write a function that takes a character from the user and removes all lines from a file that begin…
-
Python Programs
Python: Transfer and Delete specific lines from a Text File (Solved)
by Mahesh Vermaby Mahesh VermaPractice Question 14 In this question, we will learn how to perform a “Cut and Paste” operation on specific file lines. We will move lines containing the word “error” to…
-
Python Programs
Python: Display Alternate Lines from a Text File (Solved)
by Mahesh Vermaby Mahesh VermaPractice Question 12 In this question, we will learn how to write a function that reads a file and displays only the alternate lines (1st, 3rd, 5th, etc.). This logic…
-
Python Programs
Python: Count Lines Ending with a Full Stop (Solved)
by Mahesh Vermaby Mahesh VermaPractice Question 11 In this question, we will learn how to write a function that counts how many lines in a text file end with a full stop (.). This…
-
Python Programs
Python: Display Words with Length Greater than 5 (Solved)
by Mahesh Vermaby Mahesh VermaPractice Question 10 In this question, we will learn how to write a function that reads a text file and extracts only the “Long Words”—specifically those that have more than…
-
Python Programs
Python: Remove Duplicate Words from a Text File (Solved)
by Mahesh Vermaby Mahesh VermaPractice Question 9 In this question, we will learn how to read a file, identify duplicate words, and overwrite the file so it only contains unique words. This is a great…
-
Article
Batch Operating Systems: A Practical Guide with Modern Examples
by Mahesh Vermaby Mahesh VermaBatch Operating System Whether you are preparing for your BCA 202T (BCA/MCA/BTech) exams or you are a professional looking to understand how modern systems handle massive data, this guide breaks…
-
Python Programs
Python: Find the Longest Word in a Text File (Solved)
by Mahesh Vermaby Mahesh VermaPractice Question 8 In this question, we will learn how to write a function that scans a text file and identifies the longest word present in it. This logic is…