Answers for "how to print capital letters in python"

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 ^^
Posted by: Guest on January-03-2021
0

python string caps lock

>>> s = 'sdsd'
>>> s.upper()
'SDSD'
Posted by: Guest on May-14-2020

Code answers related to "how to print capital letters in python"

Python Answers by Framework

Browse Popular Code Answers by Language