Skip to content

Instantly share code, notes, and snippets.

@amitjamadagni
Created June 20, 2014 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amitjamadagni/541607132814f3e04471 to your computer and use it in GitHub Desktop.
Save amitjamadagni/541607132814f3e04471 to your computer and use it in GitHub Desktop.
l1 = list(left_component)
print l1
for i in l1:
if i[0] < 0:
i[0] = abs(i[0])
elif i[1] < 0:
i[1] = abs(i[1])
print l1
print id(l1)
print left_component
print id(left_component)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment