# take input
      string = input('Enter any string: ')
      # swapcase() function to changing case
      print('Swap Case:', string.swapcase())
      
      Python language logo

      Swapcase

      0

      0

      avatar
      Mahendra Kumar
      beginner
      inbuiltFunction
      strings

      Python program to swap characters in a given string using swap case function

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.