Practice Question 6 In this question, we will read a text file and find all the palindromic words present in it. A palindrome is a word that reads the same…
Tag:
CBSE Class 12
-
-
Python Programs
Python: Count Frequency of Each Alphabet in a Text File (Solved)
by Mahesh Vermaby Mahesh VermaPractice Question 5 In this post, we will learn how to write a function that reads a text file and counts how many times each alphabet (a to z) appears.…
-
Python Programs
Python: Replace Digits with ‘#’ and Save to New File (Solved)
by Mahesh Vermaby Mahesh VermaPractice Question 4 In this post, we will learn how to write a function that reads a file, replaces every digit with a ‘#’ symbol, and saves that modified version…