Practice 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…
Category:
Python Programs
-
-
ProgramsPython Programs
Python: Display Special Symbols from a Text File (Solved)
by Mahesh Vermaby Mahesh VermaPractice Question 2 In this post, we will learn how to write a function that finds and displays all the special symbols (like @, #, $, etc.) present in a…
-
Python Programs
Python: Count Consonants in a Text File (Solved Practice Question)
by Mahesh Vermaby Mahesh VermaPractice Question 1 In this post, we will look at how to read a text file and count the number of consonants. This is a very common logic used in…
-
Program : Write a program to accept two numbers from user and add them with or without using third variable. Solution I : Add two numbers using third variable (ans)…