I have encountered a problem where a ’return‘ gives ‘None’ back, though the variable had a value just a single line of code before.
mylist = [[7]] def sumcalc(th