Header Ads

Responsive Ads Here

Question/Solution - 2

Question



name = "Adrika"

print(name.count("a"))

# Note: count method should work as case insensitive


 

Solution



name = "Adrika"

name = name.upper() # OR   name = name.lower()

print(name.count("A"))  # print(name.count("a")


Powered by Blogger.