Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. def maxword(splitlist): #sorry, still trying to understand loops
  2. for word in splitlist:
  3. length = len(word)
  4. if ??????
  5.  
  6. wordlist = input("Enter a sentence: ")
  7. splitlist = wordlist.split()
  8.  
  9. maxword(splitlist)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement