Browse Source

Set

pull/3/head
Jure Šorn 5 years ago
parent
commit
8f77ee446d
1 changed files with 7 additions and 7 deletions
  1. 14
      README.md

14
README.md

@ -16,8 +16,8 @@ List
---- ----
```python ```python
<list>[from_inclusive : to_exclusive : step_size] <list>[from_inclusive : to_exclusive : step_size]
<list>.append(<el>) # Same as <list> += [<el>]
<list>.extend(<list>) # Same as <list> += <list>
<list>.append(<el>) # Or: <list> += [<el>]
<list>.extend(<list>) # Or: <list> += <list>
``` ```
```python ```python
@ -90,10 +90,10 @@ Set
``` ```
```python ```python
<set> = <set>.union(<set>) # Or <set> | <set>
<set> = <set>.intersection(<set>) # Or <set> & <set>
<set> = <set>.difference(<set>) # Or <set> - <set>
<set> = <set>.symmetric_difference(<set>) # Or <set> ^ <set>
<set> = <set>.union(<set>) # Or: <set> | <set>
<set> = <set>.intersection(<set>) # Or: <set> & <set>
<set> = <set>.difference(<set>) # Or: <set> - <set>
<set> = <set>.symmetric_difference(<set>) # Or: <set> ^ <set>
<bool> = <set>.issubset(<set>) <bool> = <set>.issubset(<set>)
<bool> = <set>.issuperset(<set>) <bool> = <set>.issuperset(<set>)
``` ```
@ -304,7 +304,7 @@ Numbers
```python ```python
round(<num> [, ndigits]) round(<num> [, ndigits])
abs(<num>) abs(<num>)
math.pow(x, y) # Or x ** y
math.pow(x, y) # Or: x ** y
``` ```
### Constants ### Constants

Loading…
Cancel
Save