I am writing a program that accepts a sentence and then prints out the longest line, this is what I have so far, but I am lost on what the x variable should be equal to. Any help is appreciated, thanks.
sent=raw_input('Enter sentence:')
splicedsent=sent.split(" ")
longestword=splicedsent[0]
if x in range(splicedsent[1:])>splicedsent[0]:
print x
else:
longestword=splicedsent[0]
print "Longest word:", longestword