This seems like a pretty simple problem, but I\'m looking for a short and sweet way of doing it that is still understandable (this isn\'t code golf).
Given a list of
arr=('bibhu','prasanna','behera','jhgffgfgfgfg') str1='' #print (len(str)) for ele in arr: print (ele,ele[::-1]) if len(ele)>len(str1): str1=ele elif len(ele)