String Sort Alphabetically || String Manipulation || Python

In this we are going to see a basic example of String Sort Alphabetically in Python Programming Language.

def sort_string_alphabetically():
    str1 = "cbaed"
    print(sorted(str1))

    str2 = "hifjg"
    print(sorted(str2))

sort_string_alphabetically()

# Coded By Dhiraj Shelke

#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post