How to transform dictionary data into a string vector? I have key,value data where each record is in a Python string.
An example record looks like this:

record = {
    'first_name': 'john',
    'last_name': 'doe',
    'age': '50',
}


To encode this into a neural net, I would like to firs have this data as a string vector. A sample output is like this:

"first_name john last_name doe age 50"


How can I make this transformation?
If you want output in any order, do this-

&gt;&gt;&gt; string_vector = ''
&gt;&gt;&gt; for k,v in record.items():
        string_vector += k + ' ' + v + ' '

&gt;&gt;&gt; string_vector = string_vector.rstrip(' ')
&gt;&gt;&gt; string_vector 
'first_name john last_name doe age 50'