Write a function to check if a upper case letter exists in a given string


Topic: Write a function to check if a upper case letter exists in a given string

Solution

def check_upper(str1):
    
    for char in str1: 
        k = char.isupper()   
        if k == True: 
            return True
    if(k != 1): 
        return False



List all Python Programs