Answer:
Here you go :) 
Step-by-step explanation:
Change this to your liking:
def longer_string(s1, s2): 
 if len(s1) > len(s2): 
 return s1 
 elif len(s1) < len(s2): 
 return s2 
 else: 
 return s2 
 
x = input("Enter string 1: ") 
y = input("Enter string 2: ") 
print(longer_string(x, y))