Question: Consider: def fun1(str1,str2) if len(str1) len(str2): return str1 else: return str2 What is true about this code? It returns the longer string of str1 and

Consider: def fun1(str1,str2) if len(str1) len(str2): return str1 else: return str2 What is true about this code? It returns the longer string of str1 and str.2 It returns the length of the longer string of str1 and str2 It returns the length of the shorter string of str1 and str2 It returns the shorter string of str1 and str2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
