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