Question: def task 1 ( text 1 , text 2 , text 3 ) : returns the text that is the longest. if

def task1(text1, text2, text3):
"""
returns the text that is the longest. if there is a tie, concatenate the text(s), seperated by underscores in same order of the arguments
>>> task1("hi", "bye", "hello")
'hello'
>>> task1("hello", "create", "every")
'create'
>>> task1("hi","al","oh")
'hi_all_oh'
>>> task1("two","hi", "one")
'two_one'
>>> task1("","","")

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!