First I defined : u = [ ], then I have
u = {'flavor': {'version': u'X', 'name': 'MacOS'},
'dist': {'version': u'AppleCoreMedia/1.0.0.8C148', 'name': 'iPad'}}
How can I select the ‘iPad’ field in u and assign this value to a string variable terminal?
(I don’t know what u = [] is meant to do. It’s not needed.)
Assuming I know what you mean by “the ‘iPad’ field”: