Python

arr=list(map(float, input().split(' ')))
print(f"{arr[0]+arr[1]:.6f}")

float 와 int, complex만 있는데 대충 float와 int만 생각하면 된다.

a,b= list(map(float, input().split(' ')))
print(f"{a+b:.6f}")

,는 iterable unpacking operator이다. C 처럼 변수 초기화할때 쓰는 게 아니다!

f"{a:.6f} {b:d}"

이렇게 하면 a는 실수 .뒤로 6자리, b는 정수로 출력된다.

int 타입은 f로 출력 가능. float은 d로 출력안됨