6. On what principles does Python compare two strings ? Write a program that takes two strings from the user and displays the smaller string in single line and the larger string as per this format :
1st letter last letter 2nd letter 2nd last letter 3rd letter 3rd last letter : For example, if the two strings entered are Python and PANDA then the output of the program should be : PANDA P n y o t h Ans: In python string comparison is done using the ordinal values of the […]