def getTetragridCopy(tetragrid):
 if (tetragrid == None):
  return None
 tetragridCopy = []
 for tetragridRow in tetragrid:
  tetragridCopy.append(tetragridRow[:])
 return tetragridCopy

def getTetragridCopy ( tetragrid ) : if ( tetragrid == None ) : return None tetragridCopy = [ ] for tetragridRow in tetragrid : tetragridCopy . append ( tetragridRow [ : ] ) return tetragridCopy
get tetragrid copy .