name = raw_input("What is your name (Last, First)?")
first = name.find(', ')
print "Hi", first, "!!!"

>>> name=raw_input("Enter your name [first, last]")
Enter your name (first, last): FIRST, LAST
>>> List=name.split(', ') #name='FIRST, LAST'
>>> List
['FIRST', 'LAST']
>>>print "Hi, ", List[0] # print first

OR

>>> index=name.find(',') #First occurance of the comma
>>> first=name[0:index]
>>> first
'FIRST'
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.