I am using Python to retrieve a list of record data. This data has secondary record data inside of it. I come from Java background so to me it is a nested object.
Anyway to get a value from the nested object I currently do the following.
Acc = bankAccounts[0]
BAN = Acc['Bank_Details__r']
Records = BAN['records']
Fields = Records[0]
Id = Fields['Id']
print(Id)
While this works fine and all, I was wondering if there is a cleaner way to do it?