Browse Source

Date

pull/3/head
Jure Šorn 6 years ago
parent
commit
e34b704e96
1 changed files with 5 additions and 2 deletions
  1. 7
      README.md

7
README.md

@ -338,8 +338,11 @@ func(1, 2, x=3, y=4, z=5)
#### Splat operator can also be used in function declarations:
```python
>>> def add(*a):
... return sum(a)
def add(*a):
return sum(a)
```
```python
>>> add(1, 2, 3)
6
```

Loading…
Cancel
Save