tokenize python
input = 'John, Doe, 1983, 4, 29, male'
tokens = input.split(',')
firstName = tokens[0]
lastName = tokens[1]
birthdate = (int(tokens[2]), int(tokens[3]), int(tokens[4]))
isMale = (tokens[5] == 'male')
print('Hi ' + firstName + ' ' + lastName)
Output
>>
Hi John Doe