Well, by 'weird' I meant unexpected.
Here is the entire script that I tried with 'append' (similar to the last script you wrote):
from pathlib import Path
IMAGE_FOLDER = Path(r"\\xxx\InspectionServicesData\DRONE_INSPECTION_SERVICE\01_Projects\xxx\2_FIELD-WORK\DATA-DUMP\xxx\DJI_202208131356_022")
exif_properties = {}
for image in IMAGE_FOLDER.glob("*.jpg"):
exif_properties[image.name] = arcpy.GetImageEXIFProperties(image)
shp_data = []
for name in exif_properties:
target_data = exif_properties[name][3]
picID = name
targlong = target_data['XMP:drone-dji:LRFTargetLon']
tarlat = target_data['XMP:drone-dji:LRFTargetLat']
tardist = target_data['XMP:drone-dji:LRFTargetDistance']
gimbalyaw = target_data['XMP:drone-dji:GimbalYawDegree']
LRF_data = [picID, targlong, tarlat, tardist, gimbalyaw]
shp_data.append(LRF_data)
print(shp_data)
And here is part of the result:
[['DJI_20220813135928_0001_T.JPG', '169.2997437', '-44.9373970', '245.464', '+224.70']]
[['DJI_20220813135928_0001_T.JPG', '169.2997437', '-44.9373970', '245.464', '+224.70'], ['DJI_20220813135929_0001_W.JPG', '169.2997437', '-44.9373970', '245.464', '+224.70']]
[['DJI_20220813135928_0001_T.JPG', '169.2997437', '-44.9373970', '245.464', '+224.70'], ['DJI_20220813135929_0001_W.JPG', '169.2997437', '-44.9373970', '245.464', '+224.70'], ['DJI_20220813135929_0001_Z.JPG', '169.2997437', '-44.9373970', '245.464', '+224.70']]
[['DJI_20220813135928_0001_T.JPG', '169.2997437', '-44.9373970', '245.464', '+224.70'], ['DJI_20220813135929_0001_W.JPG', '169.2997437', '-44.9373970', '245.464', '+224.70'], ['DJI_20220813135929_0001_Z.JPG', '169.2997437', '-44.9373970', '245.464', '+224.70'], ['DJI_20220813140019_0002_T.JPG', '169.2991333', '-44.9379387', '121.663', '+223.30']]
Basically, what is does is something like this:
[[pic1, a, b, c, d]]
[[pic1, a, b, c, d], [pic2, a, b, c, d]]
[[pic1, a, b, c, d], [pic2, a, b, c, d], [pic3, a, b, c, d]]
...
[[pic1, a, b, c, d], [pic2, a, b, c, d], [pic3, a, b, c, d], ... [pic183, a, b, c, d]]
It adds one picture's list at a time within the big list, and it generates several big lists until it reaches the last picture's list. In fact, I get THE big list (with the list of pic183) that I want at the bottom of the result.
I just don't know how to get this last big list at once, or to extract it from the entire result.