Skip to content

Commit

Permalink
explicit is better than implicit
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli committed Mar 11, 2017
1 parent 4255b8a commit 4613129
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions advanced/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ wherever the function is called:
```python
def login():
...
return username, password
return (username, password)


username, password = login()
Expand All @@ -55,7 +55,7 @@ def get_new_info(username):
password = input("New password: ")
fullname = input("Full name: ")
phonenumber = input("Phone number: ")
return username, password, fullname, phonenumber
return (username, password, fullname, phonenumber)
```

...you could do this:
Expand Down

0 comments on commit 4613129

Please sign in to comment.