강의

멘토링

로드맵

Inflearn Community Q&A

89choice0493's profile image
89choice0493

asked

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

StarCraft Project First Half

매개변수와 파라미터는 어떻게 다른가요?

Written on

·

476

1

역할이 무엇인지 헷갈려요 

( )괄호안에 선언된 변수

함수안에 선언된 변수로 구분하면 될까요?

python

Quiz

41% of people got it wrong. Give it a try!

Why is it more efficient to use a class rather than separate variables for each when representing multiple similar objects?

As variable naming rules became simpler,

Reducing code duplication and making management easier

Program running speed is much faster

As memory usage has greatly decreased

Answer 3

3

바라보는 입장에서의 용어 차이입니다.

변수를 할당 받는 클래스 입장에서 보면 ()안의 변수는 '파라미터'

변수를 보내주는 입장에서 ()의 변수는 '아규먼트' 라고 표현합니다.

1

nadocoding님의 프로필 이미지
nadocoding
Instructor

답변이 늦어 죄송합니다.

둘 다 그냥 '변수'라고 이해하시면 편할 듯 합니다.

함수를 호출할 때 전달하는 값을, 그 함수 내에서 정의한 특정 이름의 변수로 받아서 사용할 수 있게 되는 것입니다.

0

89choice0493님의 프로필 이미지
89choice0493
Questioner

아하! 이해됬어요ㅎㅎ 지나치지않고 답변해주셔서 감사합니다.

89choice0493's profile image
89choice0493

asked

Ask a question