Last active
March 11, 2021 20:18
-
-
Save SEJeff/81c594a11b6e4f62f77640c62b9468fb to your computer and use it in GitHub Desktop.
Python question
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def append_one(data=[]): | |
data.append(1) | |
return data | |
### What does this function return for | |
1. `append_one()` | |
2. `append_one(data=[2])` | |
3. `append_one()` | |
4. `append_one(data=[5])` | |
5. `append_one()` | |
6. `append_one()` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment