#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http

제목[re]질문이요2022-04-14 10:07
작성자

{0} {1}은 포매팅 순서를 나타냅니다.

{0}에는 2가, {1}에는 mypi가 출력됩니다.

{:.2f}는 소수점 둘째자리까지 출력하라는 의미입니다.


즉,  print를 하면

pi rounded to 2 demical places is 3.14.

라는 문장이 출력됩니다.

댓글
이전질문이요2022-04-13
다음ConditionalStatement 실습파일 질문입니다.2022-04-13