Please help me with the task: Find the middle number - 1.

Hello, I’m working on this task:

Here is my code:

a = int(input())
b = int(input())
c = int(input())

if a > b:
   if a > c:
       if b > c:
           print (f"{a}  {b}  {c}")
           print (f"{a}, {c}  {b}")
       print (f"{c}  {a}  {b}")
else b > a:
   if b > c:
       if a > c:
           print (f"{b}  {a}  {c}")
           print (f"{b}  {c}  {a}")
       print (f"{c}  {b}  {a}")


Can anyone please help me to solve it?

Welcome to CodeEasy!

This task is not about finding the middle number yet, but more about printing all possible combinations if a <= b and when a > b.
Here is what your program should do in case a <=b:

if a <= b:
    print (f"{a} {b} {c}")
    print (f"{a} {c} {b}")
    print (f"{c} {a} {b}")

Now you need an alternative code for the ‘else’ clause, and this is it.