0
Define a function that can accept two strings as input and print the string with maximum length inthe console.
A function that can accept two strings as input and print the string with maximum length in console Define a function that can accept two strings as input and print the string with maximum length inthe console. If two strings have the same length, then the function should print all strings line by line. TDD Include tests for this program.
3 Antworten
+ 5
See this Code:
https://code.sololearn.com/c6YTe5iw8V80/#py
+ 2
def max_length(y):
return max(y,key=len)
x=input('enter two string with using space\n')
print(max_length(x.split()))
+ 2