fork download
  1. # your code goes here
  2. #0JLQsNGB0LjQu9C10L3QutC+INCQ0YDRgtC10Lwg
  3.  
  4.  
  5. #простезавдання_2_13
  6.  
  7. def prog(n):
  8.  
  9. print(f"Number {n}:")
  10. if int(n) == float(n) :
  11. print(" — Ціле")
  12. if (int(n)) != (float(n)) : print(" — Не ціле")
  13.  
  14. if n > 0: print(" — Positive")
  15. elif n <0: print(" — Negetive")
  16. elif n ==0: print(" — It's 0")
  17.  
  18. if n%2 ==0 and n != 0: print(" — Parne")
  19. elif n==0: print(" — It's 0")
  20. else: print(" — Ne parne")
  21.  
  22.  
  23.  
  24.  
  25. prog(0)
  26. prog(8.0)
  27. prog(-3.5)
Success #stdin #stdout 0.08s 14152KB
stdin
Standard input is empty
stdout
Number 0:
    — Ціле
    — It's 0
    — It's 0
Number 8.0:
    — Ціле
    — Positive
    — Parne
Number -3.5:
    — Не ціле
    — Negetive
    — Ne parne