i am beginner in python and i am trying to make a small program in python to count repeated character in a text file
here is the code
count = 0
for c in text:
if c == char:
filename = raw_input("Enter File name:")
with open(filename) as f:
Move your return to be outside of the for loop. It's currently only going through 1 iteration.