Question: Python Question! Pls use notes on each step so I can comprehend whats going on. Show your code is running and how you defined it.
tCount (s) Write the function tCount that counts how many times the letter t (either lowercase or uppercase) occurs in a string. It takes a string s as input and returns an integer, the number of characters in the string that are tor T. Please use a for loop to do the computation. I am banning the built-in function count for obvious reasons. It is good to understand how these basic functions are built. You could test the quality of your code using count before you submit, but be sure to remove those test calls when submitting! Sample Inputs Expected Outputs 9 There are 9 't' letters in this 6 sentence" S "abra cadabra" 0 S = "Tattooist has capital T letters 8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
