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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!