강의

멘토링

로드맵

Inflearn Community Q&A

No author

This post's author information has been deleted.

Python that anyone can learn, whether they are a liberal arts major or a non-major!

함수 부분에서 값이 출력이 안되는 현상

Written on

·

332

0

https://inf.run/P1ot

스크린샷(4).png저도 이분과 같이 중간 값이 실행이 안되서 순서를 좀 옮겨봤더니

wow_f(2,3) 밑줄에 다른 명령어가 있으면 값이 출력이 안되더라구요.

명령어가 윗줄에 있을 때는 실행이 됐습니다.

답변해주신 대로 코드를 맨위에서 부터 실행해 봤는데 똑같았습니다.

그래서 print를 혹시나 해서 붙여봤는데 print를 붙일 때만 값이 출력이 됐습니다.

혹시 이런 현상이 무엇 때문인지 알 수 있을까요?

이건 주피터 노트북만의 특성인가요?

좋은 강의 잘 듣고 있습니다!

python

Answer 2

1

DeepingSauce님의 프로필 이미지
DeepingSauce
Instructor

강의 첫부분에서 다루는

```

from IPython.core.interactiveshell import InteractiveShell

InteractiveShell.ast_node_interactivity = "all"

```

를 반드시 실행해주세요..

0

감사합니다..

No author

This post's author information has been deleted.

Ask a question