kkalog

Untitled

Jul 20th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. def len_of_strings(a,b):
  2.   if len(a) == len(b):
  3.     print a
  4.     print b
  5.   elif len(a)>len(b):
  6.     print "The string with the maximum length is", a ,"with lenghth: ",len(a)
  7.   else:
  8.     print "The string with the maximum length is", b ,"with lenghth: ",len(b)  
  9.    
  10.    
  11. x = raw_input("Give me the first string:")
  12. y = raw_input("Give me the second string:")
  13.  
  14. len_of_strings(x,y)
Advertisement
Add Comment
Please, Sign In to add comment