SyntaxFix
Write A Post
Hire A Developer
Questions
use this function.
its the same convention you wanted. using the simple abs feature of python.
also - sometimes the answers are so simple we miss them, its okay :)
>>> def distance(x,y): return abs(x-y)