Practice Question 20 In this question, we will learn how to write a function that takes the text from one file and writes it into another file in complete reverse…
Tag:
CBSE Class 12 CS
-
-
Python Programs
Python: Copy Even-Length Words to a New File (Solved)
by Mahesh Vermaby Mahesh VermaPractice Question 19 In this question, we will write a function that reads a source file and “extracts” only the words that have an even number of characters (like “code”,…
-
Practice Question 18 In this question, we will learn how to write a function that scans a text file and counts every word that begins with a vowel (A, E,…
-
Python Programs
Python: Display Words Containing Digits from a Text File (Solved)
by Mahesh Vermaby Mahesh VermaPractice 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…
-
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…