@ -1,5 +1,7 @@
myfile = open("fruits.txt")
content = myfile.read(6)
myfile.close()
def countstring(character, filepath):
myfile = open(filepath)
content = myfile.read()
return(content.count(character))
print(content)
print(countstring("a", "fruits.txt"))
The note is not visible to the blocked user.