Hey guys I feel like this is a simple question, but I don’t know what these lines of code are called so its difficult for me to search for it 🙁 Hoping you could help me out!
For context I’m getting data from an FQL query in Django and this code is in Views.py. I was wondering if there was any way to combine these three lines or simplify this. Thanks!
edu = result[0]['education']
educa = edu[0]['school']
education = educa['name']
Simply substitute the references for the variable names in the last expression:
Not certain that this is more readable though.