string Comparer

    0

    0

    Mahendra Kumar

    beginnerstrings

    Python program to compare strings ignore-case

    # first string
    string1 = 'KNOW PROGRAM'
    # second string
    string2 = 'Know Program'
    # check strings are same using lower() function
    if(string1.lower() == string2.lower()):
        print('The strings are the same.')
    else:
        print('The strings are not the same.')
    
    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.