Activity 7.19.1.
Fix the code so that only โmeowโ is printed.
count that accepts a string and a letter as arguments, then returns the count of that letter in the string. For example, if the function call was count("banana", "a") it would return 3. Hint: use the count method.
count that accepts a string and a letter as arguments, then returns the count of that letter in the string. For example, if the function call was count("banana", "a") it would return 3. Hint: use the count method.
statement.
statement.
length, and print it, so that it prints โThe length is 17โ.
find and string slicing to extract the portion of string after the colon character and convert it into a floating point number called num.
numDigits that returns the number of digits in an integer n.