Python Basics (GitHub)

Hyungseop Lee·2023년 4월 20일
0

Python Basics

Python Basics Jupyter Notebook


List, Tuple, Set, Dictionary 정리

List

  • Created using square brackets : []

Tuple

  • Created using square brackets : ()
  • Once a tuple is created, you cannot change its values
    (== Unchangable == immutable)

Set

  • Created using curly brackets : {}
  • A set is a collection which is unordered, unchangable, and unindexed

Dictionary

  • Created using curly brackets : {}
  • A dictionary is a collection which is ordered/unordered, changable, and do not allow duplicates.

헷갈렸던 문법

d : dictionary type ➡️ get(), del

items()

dictionary : {}

profile
Embedded AI(DL model compression)

0개의 댓글