def method(x, y, z):
def nested_method(a, b, c):
if a + b + c < 7:
for i in range(0, 7):
if i == a + b +c
return i
nested_method(3, 4, 0)
nested_method(3, 0, 1)
nested_method(1, 2, 0)
returns in method: None, 4, 3
If nested method returns something i want the method to return it. When i only need one answer i firtsly check the more prioritiesed.
first priority: 3, 4 and 0
second priority: 3, 0 and 1
...
so it would return 4
nested_methodreturnsTrue? Functions without a return statement returnNone.methodyou need to have areturnstatement inmethod...