0
I need help please (whats wrong with my code)
I make program for detect when user input 5 random number this program can ascending and descending number that's my coding can you tell what's wrong for ascending (program use function) def inputN(comment): n = int(raw_input(comment)) return n def ascending(n1, n2, n3, n4, n5): if (n1 < n2 or n1 < n3 or n1 < n4 or n1 < n5): print n1, if (n2 < n1 or n2 < n3 or n2 < n4 or n2 < n5): print n2, if (n3 < n1 or n3 < n2 or n3 < n4 or n3 < n5): ...
2 Answers
0
.....
if (n3 < n1 or n3 < n2 or n3 < n4 or n3 < n5):
print n3,
if (n4 < n1 or n4 < n2 or n4 < n3 or n4 < n5):
print n4,
if (n5 < n1 or n5 < n2 or n5 < n3 or n5 < n4):
print n5,
comment = "number 1 = "
n1 = inputN(comment)
comment = "number 2 = "
n2 = inputN(comment)
comment = "number 3 = "
n3 = inputN(comment)
comment = "number 4 = "
n4 = inputN(comment)
comment = "number 5 = "
n5 = inputN(comment)
ascending(n1, n2, n3, n4, n5)
0
please help me, thank you