str1=input("Enter the first string:") str2=input("Enter the second string:") print("Conversion of Uppercase of",str1,"is",str1.upper()) print("Conversion of lowercase of",str2,"is",str2.lower()) print("Swap-case of string",str1,"is",str1.swapcase()) print("Title cased version of string",str1,"is",str1.title()) print("String replacement of first string",str1,"is",str1.replace(str1,str2)) string="python is awesome" capitalized_string=string.capitalize() print("\n Old String: ",string) print(" Capitalized string: ",capitalized_string) string="Python is awesome,isnt it?" substring="is" count=string.count(substring) print("The Count of given string is: ",count) name="bca college, nidasoshi" if name.isalpha()==True: print("All characters are alphabets") else: print("All characters are not alphabets") print("Maximum is: ",max(1,3,2,5,4)) num=[1,3,2,8,5,10,6] print("Maximum number in given array is : ",max(num)) teststring="Python" print("Length of ",teststring," is ",len(teststring))