I'm trying to find a way to discover an algorithm for even and odd number, there's some way to make something simillar like in programming?

this doesnt work for me

Hi @Reidenan

why do you pass curves to the code block? this is why it doesn’t work on your side.

if you ask for another way to calculate residual, you can build your own function something like this.

def calculate_residual(number, divider):
	return number - int(number / divider) * divider
2 Likes

Hello,

you can look in the code Mr. Poupin

edit:

If you ever look for the odd and even curves in the list
you can use list chop (with 2) then 1item odd and last item even

Cordially
christian.stan

1 Like