# 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.')
      
      Python language logo

      string Comparer

      beginner
      strings

      Python program to compare strings ignore-case

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.