Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def len_of_strings(a,b):
- if len(a) == len(b):
- print a
- print b
- elif len(a)>len(b):
- print "The string with the maximum length is", a ,"with lenghth: ",len(a)
- else:
- print "The string with the maximum length is", b ,"with lenghth: ",len(b)
- x = raw_input("Give me the first string:")
- y = raw_input("Give me the second string:")
- len_of_strings(x,y)
Advertisement
Add Comment
Please, Sign In to add comment