Question: #Write a function called count_capital_consonants. This #function should take as input a string, and return as output #a single integer. The number the function returns

#Write a function called count_capital_consonants. This

#function should take as input a string, and return as output

#a single integer. The number the function returns should be

#the count of characters from the string that were capital

#consonants. For this problem, consider Y a consonant.

#

#For example:

#

# count_capital_consonants("Georgia Tech") -> 2

# count_capital_consonants("GEORGIA TECH") -> 6

# count_capital_consonants("gEOrgIA tEch") -> 0

#Write your function here!

#The lines below will test your code. Feel free to modify

#them. If your code is working properly, these will print

#the same output as shown above in the examples.

print(count_capital_consonants("Georgia Tech"))

print(count_capital_consonants("GEORGIA TECH"))

print(count_capital_consonants("gEOrgIA tEch"))

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!