Answers for "print only the uppercase letters in the string python"

9

how do you change a string to only uppercase in python

original = Hello, World!

#both of these work
upper = original.upper()
upper = upper(original)
Posted by: Guest on March-12-2020
0

python - how many letters are capital in a string

def n_upper_chars(string):
    return sum(map(str.isupper, string))
Posted by: Guest on June-08-2021
2

python method to check for uppercase character

a="DEMO"
print(a.isupper())
Posted by: Guest on August-07-2020

Code answers related to "print only the uppercase letters in the string python"

Python Answers by Framework

Browse Popular Code Answers by Language