Skip to content

Instantly share code, notes, and snippets.

View choco9966's full-sized avatar
🏫
Working from lab

kimhyeonwoo choco9966

🏫
Working from lab
  • iStat Lab, KAIST
  • Daejeon
View GitHub Profile
@choco9966
choco9966 / 8회차 과제.ipynb
Created August 2, 2018 05:30
8회차 과제 제출합니다.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@choco9966
choco9966 / Untitled.ipynb
Created July 19, 2018 15:13
[0720]1-5회차 과제
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.
@choco9966
choco9966 / [0715] 3일차 과제.ipynb
Created July 15, 2018 12:18
김현우_3회차_과제_수정본
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# 튜플과 리스트의 차이를 아는대로 서술해보세요.
### 튜플
#### 변경 불가능함.
#### 리스트에 비해 공간이 효율적임
#### 튜플은 들어 있는 요소의 수를 사전에 정확히 알고 있을 경우에 사용한다.
#### `*args`를 함수에서 정의했을 때, args로 전달되는 인자는 튜플을 사용한다.
### 리스트
#### 변경 할 수 있음
#### 리스트는 단일 종류의 요소를 갖고 있고 그 일련의 요소가 몇 개나 들어 있는지 명확하지 않은 경우에 주로 사용한다.
### 3회차 과제
#### 문제1 : Python에서 거짓을 의미하는 표현식 10개, 참을 의미하는 표현식 10개를 작성해보세요.
# - 참
## Q. 두개는 도저히 모르겠습니다.
if True:
print(1)
if 1:
print(2)