Created
June 13, 2020 09:42
-
-
Save dipta007/06645ce54f290bcef8ffaa01883cf668 to your computer and use it in GitHub Desktop.
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
# Ugly code | |
def call(arr): | |
arr.append(1) | |
call(arr) | |
# Clean Code | |
def call(arr): | |
arr.append(1) | |
return arr | |
arr = call(arr) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment