Question: In this problem we will work with strings consisting only of lower case letters. count_QZ implementation First, write a function called count_QZ that takes in
In this problem we will work with strings consisting only of lower case letters.
count_QZ implementation
First, write a function called count_QZ that takes in a string and returns the number of times the letters q and z appear in the string. For example an input of zap would return 1, quartz would return 2, and quizzical would return 3. Sample solution: 12 lines
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
