인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

97console2748's profile image
97console2748

asked

Free Python Tutorial (Basic) - Become a Developer in 6 Hours

Argument and Return Value

commission 부분 질문있습니다.

Written on

·

185

1

withdraw_night 함수에 print하지 않고

함수밖에 프린트해야 정상값이 나오는지 궁금합니다.ㅠㅠ

python

Answer 1

2

nadocoding님의 프로필 이미지
nadocoding
Instructor

안녕하세요

withdraw_night 함수 안에서도 print 를 통해 값을 출력하실수 있습니다. 강의에서는 전역 변수 사용과 더불어 함수를 통한 값의 반환이 어떻게 일어나는지 설명하기 위해 외부에서 print 를 했답니다^^

감사합니다.

97console2748's profile image
97console2748

asked

Ask a question