Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 튜플과 리스트의 차이를 아는대로 서술해보세요. | |
### 튜플 | |
#### 변경 불가능함. | |
#### 리스트에 비해 공간이 효율적임 | |
#### 튜플은 들어 있는 요소의 수를 사전에 정확히 알고 있을 경우에 사용한다. | |
#### `*args`를 함수에서 정의했을 때, args로 전달되는 인자는 튜플을 사용한다. | |
### 리스트 | |
#### 변경 할 수 있음 | |
#### 리스트는 단일 종류의 요소를 갖고 있고 그 일련의 요소가 몇 개나 들어 있는지 명확하지 않은 경우에 주로 사용한다. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 3회차 과제 | |
#### 문제1 : Python에서 거짓을 의미하는 표현식 10개, 참을 의미하는 표현식 10개를 작성해보세요. | |
# - 참 | |
## Q. 두개는 도저히 모르겠습니다. | |
if True: | |
print(1) | |
if 1: | |
print(2) |