Python - Data Types
- int
- float
- string
- boolean
- None # Python에만 존재하는 타입, 자바스크립트의 null과 의미가 비슷함
sequence type
- list : 변수 안에 여러 값을 열거하는 방식
mutable sequence: 변할 수 있는 타입 list is mutable suquence list is common suquence string, int, bool, none, float 을 저장가능list = ['a', 24, True, None] - tuple : 변수 안에 여러 값을 열거하는 방식
immutable sequence: 변할 수 없는 타입 string, int, bool, none, float 을 저장가능 tuple is immutable suquence tuple is common suquencetuple = ('a', 24, True, None) - dictionary : { key : value } 형식으로 저장하는 방식
mutable sequence : 변할 수 있는 타입
list, tuple을 저장가능함
dict = {"name" : 'inmo', "age" : 24, "sex": 'male', "job" : None }
Function
반복가능한 기능(코드) 박스
def say_hello():
print("hello")
print("bye")

# Python은 ” { } ” 를 사용하지 않고 들여쓰기로 구분한다.
Built-in Functions
기본으로 제공되는 함수 : https://docs.python.org/3/library/functions.html
본 글은 노마드 코더의 Python으로 웹 스크래퍼 만들기 수업을 정리합니다.