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
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
English,
1 month ago
Environmental Sciences,
1 month ago
Social Sciences,
2 months ago
English,
2 months ago
Math,
9 months ago
Chemistry,
9 months ago