Last active
March 29, 2022 15:33
-
-
Save Ra1d7/2ebae15268868354536e04e00e4b90e0 to your computer and use it in GitHub Desktop.
test
This file contains 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
lst = range(0,100) | |
newlst = [] | |
def func(lest): | |
global newlst | |
newlst.append(lest[-1]) | |
newlst.append(lest[0]) | |
func(lst) | |
print(newlst) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment