fork download
  1. def square(n):#Задача 3, по стороне узнать периметр, площадь, диагональ
  2. c=[]
  3. c.append(n*4)
  4. c.append(n**2)
  5. c.append((n**2*2)**0.5)
  6. return c
  7. print(square(int(input())))
Success #stdin #stdout 0.02s 9984KB
stdin
1
stdout
[4, 1, 1.4142135623730951]