구름EDU_A+B

Eugenius1st·2023년 4월 21일
0

Python_algorithm

목록 보기
83/83
post-thumbnail

문제

풀이

  1. 반올림
  2. 소수점 대체 출력

코드

a, b = map(float,input().split())
N = a+b
N = round(N,6)
print("{:.6f}".format(N))

느낀점

알아야 할 것은
1. round 함수
2. format 함수 사용법 ★★★★★

"{:.소수점갯수f}".format(N)

profile
최강 프론트엔드 개발자가 되고싶은 안유진 입니다

0개의 댓글