Swapcase

    0

    0

    Mahendra Kumar

    beginnerinbuiltFunctionstrings

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

    # take input
    string = input('Enter any string: ')
    # swapcase() function to changing case
    print('Swap Case:', string.swapcase())
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.