def sorting(a, b, c):
array = [a, b, c]
newarray = array.sort()
newarray2 = array.reverse()
if newarray == array:
print ('The fish is rising')
elif newarray2 == array:
print ('The fish is decesnding')
else:
print ('No fish')
def main():
sorting((int(input('1st'))), (int(input('2nd'))), (int(input('3rd'))))
main()
Basically, it the numbers that are inputted are increasing then the fish is rising and if the numbers are decreasing the fish is decreasing. Finally if the numbers inputted are not consecutively increasing or decreasing i.e. 1, 3, 2 then it should output no fish. Even if there is another more efficient way of doing this which there probably is, can someone please explain how to compare two identical lists to see if they are in the same order?