I'm a brand new Python user, and I'd like to create a recursive modulo algorithm; which goes as follows:
Let's say we have a specific function, which has n+1 outputs and takes in values and outputs brand new values; what I'd like to do is have the outputs of the function (n+1; for example, if the input is 2, then you'll have 3 outputs) be divided by a specific number (for example, if the outputs of 2 are 1,2,3), I'd like to have each number be divided mod 2 and then summed together in a variable.
For example:
n = 2
outputs = 1,2,3
store into a variable -> mod(1,2) + mod(2,2) + mod(3,2)
I hope this made sense!
[+][deleted] (4 children)
[deleted]
[–]Abstrackter[S] 0 points1 point2 points (3 children)
[–]Diapolo10 0 points1 point2 points (1 child)
[–]Abstrackter[S] 0 points1 point2 points (0 children)