Write a Python Program to find sequences of one upper case letter followed by lower case letters. If found, print ‘Yes’, otherwise ‘No’.
Input : Geeks Output : Yes Input : geeksforgeeks Output : No
Approach: Using re.search()
To check if the sequence of one upper case letter followed by lower case letters we use regular expression ‘
Yes Yes No
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.