Advertisement
Vitaliy_Novichikhin

stepik 2.1.2clean

Jun 15th, 2020
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. def f_x(x):
  2.    try:
  3.       y = 1 / (x + 1) + x / (x - 3)
  4.       return y
  5.       print("f(", t, ") = ", y)
  6.    except:
  7.       print('невозможное значение')
  8.  
  9.  
  10.  
  11. t = float(input("t = "))
  12.  
  13. y = f_x(t)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement