fork download
  1. # your code goes here
  2. '''
  3. 0JLQsNGB0LjQu9C10L3QutC+INCQ0YDRgtC10Lwg
  4. '''
  5. # HW Simple Task 2.1
  6. def progA(x,y):
  7. if x>y:
  8. return x-y
  9. else:
  10. return y-x
  11.  
  12.  
  13. def progB(x,y):
  14. if x>y:
  15. print(x-y)
  16. else:
  17. print(x-y)
  18.  
  19.  
  20.  
  21. def progC(x,y):
  22. if x>y:
  23. print(f"{x} {y}")
  24. else:
  25. print(f"{y} {x}")
  26.  
  27.  
  28. a = int(6)
  29.  
  30. b = int(10)
  31.  
  32. print(progA(a,b))
  33.  
  34. progB(a,b)
  35.  
  36. progC(a,b)
Success #stdin #stdout 0.07s 14156KB
stdin
Standard input is empty
stdout
4
-4
10 6