Python/QuickRef: Difference between revisions

From Fundamental Ramen
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{| class="wikitable"
{| class="wikitable"
! [https://docs.python.org/3/tutorial/datastructures.html#more-on-lists list]
! [https://docs.python.org/3/tutorial/datastructures.html#more-on-lists list]
! set
! [https://docs.python.org/3/tutorial/datastructures.html#sets set]
! dict  
! [https://docs.python.org/3/library/stdtypes.html#mapping-types-dict dict]
|-
|-
|
|
Line 18: Line 18:
|
|
|
|
* clear()
* copy()
* get(key, [default])
* items()
* keys()
* pop(key, [default])
* popitem()
|}
|}

Revision as of 06:48, 28 January 2021

list set dict
  • append(x)
  • extend(iter)
  • insert(i, x)
  • remove(x)
  • pop([i])
  • clear()
  • index(x)
  • count()
  • sort()
  • reverse()
  • copy()
  • clear()
  • copy()
  • get(key, [default])
  • items()
  • keys()
  • pop(key, [default])
  • popitem()