Created
June 18, 2021 14:35
-
-
Save TanjimReza/579c1d7a80c1dff93e4685ebf6baa65a to your computer and use it in GitHub Desktop.
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
newList = [1,2,3,2,1] | |
ggList = [] | |
print(newList) | |
lenOfList = len(newList) - 1 | |
for i in range(lenOfList, -1, -1): | |
print(f"Apending {newList[i]}") | |
ggList.append(newList[i]) | |
print(ggList) | |
if ggList == newList: | |
print("GG") | |
else: | |
print("No GG") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment