Computer Science, asked by aryambhargava8, 2 months ago

1.
Write a python program that accepts filename as an input from the user. Open the file and
count the number of times a character appears in the input.​

Answers

Answered by debajyotisarkar2020
1

Answer:

This is a Python Program to count the occurrences of a letter in a text file. ... The program takes a letter from the user and counts the number of occurrences of ... file name: ") l=input("Enter letter to be searched:") k = 0 with open(fname, 'r') as f: ...

Similar questions