Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
matijakolaric committed Sep 12, 2020
1 parent 5e63615 commit ea70c62
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,8 @@ AM ARMENIA
AU AUSTRALIA
AT AUSTRIA
...
```

```python
usa in l
```
```Result:
False
```

The shorter version also works, yielding same results:
```python
from music_metadata.territories.territory_list import TerritoryList
Expand All @@ -96,6 +88,24 @@ for t in sorted(l, key=lambda x: x.name):

One can check if a country is finally included in the list:

```python
usa in l
```

```Result:
False
```

Works also with territories deeper in the structure, also with codes:

```python
'hr' in l
```

```Result:
True
```

### Share manipulation

Share calculations are also possible, by using a second argument to
Expand Down

0 comments on commit ea70c62

Please sign in to comment.