I got this code below, but even debugging it, I cannot understand why gives me out 7 instead of 6.
More precisely when I debudg every return gives me the expected result:
ipdb> --Return-- ['a']ipdb> --Return-- ['a', 'a']ipdb> --Return-- ['a', 'a', 'a']but at the end func() + func() + func() becomes ['a', 'a', 'a', 'a', 'a', 'a', 'a']
why is there one 'a' more???
#!/usr/bin/python
# -*- coding: …Run Code Online (Sandbox Code Playgroud) python-3.x ×1