Splitting a person's name into forename and surname

Posted by Nick on Stack Overflow See other posts from Stack Overflow or by Nick
Published on 2008-11-03T19:19:09Z Indexed on 2010/05/19 3:10 UTC
Read the original article Hit count: 304

Filed under:
|

ok so basically I am asking the question of their name I want this to be one input rather than Forename and Surname.

Now is there any way of splitting this name? and taking just the last word from the "Sentence" e.g.

name = "Thomas Winter"
print name.split()

and what would be output is just "Winter"

© Stack Overflow or respective owner

Related posts about python

Related posts about split