4.6a.py 111 B

1234567
  1. x = float(input('Введите x: '))
  2. if x < 2:
  3. y = x
  4. print('y=', x)
  5. else:
  6. y = 2
  7. print('y=2')