Question: 3. Write a program using a function that counts the number of times the letter A appears in a string 4. This is a program
3. Write a program using a function that counts the number of times the letter A appears in a string 4. This is a program that counts the number of times ' 1 ' appears in a list Correct the error for this program In [6]: H.A=[1,2,3,4,1,1,2,3,4]count=8forinA:count-count+1ifie-1:print(count) print(count) IndentationError: expected an indented block
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
