Upper To Lower

    0

    0

    Mahendra Kumar

    beginnerstrings

    Python program to convert uppercase to lowercase

    # take input
    string = input('Enter any string: ')
    # convert uppercase to lowercase
    new_string =''
    for i in range(len(string)):
        if(string[i] >= 'A' and string[i] <= 'Z'):
            new_string = new_string + chr((ord(string[i]) + 32))
        else:
            new_string = new_string + string[i]
    # print lowercase string
    print('In Lower Case:',new_string)
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.