Computer Science, asked by suniltty180, 2 months ago

#Predict the output

def count_words():
w=0
with open("story.txt") as f:
for line in f:
for word in line.split():
if(word[0] == "a" or
word[0] == "A"):
print(word)
w=w+1
print("total words starting with 'a' are ",w)
# function calling
count_words()

please give right answer only.​

Answers

Answered by sneha5744
0

Indentation error exists

Attachments:
Similar questions