Skip to content

Commit 4613129

Browse files
committed
explicit is better than implicit
1 parent 4255b8a commit 4613129

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

advanced/functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ wherever the function is called:
3434
```python
3535
def login():
3636
...
37-
return username, password
37+
return (username, password)
3838

3939

4040
username, password = login()
@@ -55,7 +55,7 @@ def get_new_info(username):
5555
password = input("New password: ")
5656
fullname = input("Full name: ")
5757
phonenumber = input("Phone number: ")
58-
return username, password, fullname, phonenumber
58+
return (username, password, fullname, phonenumber)
5959
```
6060

6161
...you could do this:

0 commit comments

Comments
 (0)