how to print capital letters in python code example
Example 1: how to check case of string in python
string = 'iAmABoy'
for letter in string:
print(letter)
if letter.isupper():
print('yes')
break
o/p:-
i
A
yes
happy coding ^^
Example 2: python string caps lock
>>> s = 'sdsd'
>>> s.upper()
'SDSD'