강의

멘토링

커뮤니티

Inflearn Community Q&A

goffhahxh9480's profile image
goffhahxh9480

asked

[Kim Left-hand's Left-hand Coding] Ugly Coding Kid: Python Basics in 4 Hours (Including E-book)

Lists, tuples, dictionaries

처음에 my_int = []

Written on

·

338

0

이건 무슨 의민가요?

굳이 안해줘도 다음에 하셨던 것들이 잘 돼서 궁금하네용

python

Answer 2

0

goffhahxh9480님의 프로필 이미지
goffhahxh9480
Questioner

아하.. 덕분에 잘 이해했습니다!

0

my_int를 리스트로 만들겠다하고 선언한다는 의미입니다. 또는 초기값설정.
그러면 나중에 숫자나 문자를 추가할때 또는 함수를 사용할때 유용합니다.
my_int = []
my_int.append(1)
my_int.append('Hello')
my_int
[1, Hello]

goffhahxh9480's profile image
goffhahxh9480

asked

Ask a question