Skip to content

Instantly share code, notes, and snippets.

@TanjimReza
Created June 18, 2021 14:35
Show Gist options
  • Save TanjimReza/579c1d7a80c1dff93e4685ebf6baa65a to your computer and use it in GitHub Desktop.
Save TanjimReza/579c1d7a80c1dff93e4685ebf6baa65a to your computer and use it in GitHub Desktop.
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