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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!