Skip to content

Instantly share code, notes, and snippets.

@jgs03177
Created January 23, 2024 10:16
Show Gist options
  • Save jgs03177/1ce03aa742adf4d0031ee810b139e1d1 to your computer and use it in GitHub Desktop.
Save jgs03177/1ce03aa742adf4d0031ee810b139e1d1 to your computer and use it in GitHub Desktop.
Understanding python list
a = []
a.append(a)
while len(a) >= 1:
print(a)
a = a[0]
import copy
b = copy.deepcopy(a)
print(b)
import numpy as np
c = np.array(a)
print(c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment