Practice Question 25 In this question, we will learn how to write a function that scans an article and counts the total number of common punctuation marks (., ,, !,…
Tag:
String Methods
-
-
Python Programs
Python: Remove Extra Spaces Between Words in a File (Solved)
by Mahesh Vermaby Mahesh VermaPractice Question 24 In this question, we will learn how to write a function that takes a “messy” file containing multiple spaces between words and cleans it up so that…
-
Python Programs
Python: Capitalize the First Letter of Each Word in a File (Solved)
by Mahesh Vermaby Mahesh VermaPractice Question 23 In this question, we will learn how to write a function that acts like an “Auto-Corrector.” It will read a file and ensure every word starts with…
-
Practice Question 21 In this question, we will learn how to write a function that scans a text file and calculates exactly how many blank lines it contains. This is…
-
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…