keep it simple, python
def allTheSame(x, y, z): return x==y and y==z def allDifferent(x, y, z): return x!=y and y!=z and x!=z def sorted(x, y, z): return x<=y and y<=z # Testing def main(): print(allTheSame(5,5,5)) print(allDifferent(1,2,3)) print(sorted(1, 2, 3)) # Making function call to main() main()
Get Answers For Free
Most questions answered within 1 hours.