Skip to content

Instantly share code, notes, and snippets.

@nickgrier07
Created February 18, 2019 07:48
Show Gist options
  • Select an option

  • Save nickgrier07/681c083926a0a2894256229723cc04c0 to your computer and use it in GitHub Desktop.

Select an option

Save nickgrier07/681c083926a0a2894256229723cc04c0 to your computer and use it in GitHub Desktop.
Help xmick
List = [0,0,0,0,0,0,0,0,0]
full_list = []
for i in range(0, len(List)):
List[i] = 1
full_list.append(List[:])
List[i] = 0
print(full_list)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment