Skip to content

Instantly share code, notes, and snippets.

@Timtech4u
Created September 24, 2018 14:54
Show Gist options
  • Select an option

  • Save Timtech4u/ef237acab08fde80c5f90e7cc7e2fe8c to your computer and use it in GitHub Desktop.

Select an option

Save Timtech4u/ef237acab08fde80c5f90e7cc7e2fe8c to your computer and use it in GitHub Desktop.
Longest string
def LongestWord(sen):
sen = sen.split()
sen = max(sen, key=len)
# code goes here
return sen
# keep this function call here
print LongestWord(raw_input())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment