Hey i have a question how i can print a specific element in a Dictonary without a loop
i tryed this code but this dosnt work :(
dict = {
"data": [
{
"id": "0",
"song": "Song5",
"time": 1660582745,
"info": "he"
},
{
"id": "1",
"song": "Song4",
"time": 1660568345,
"info": "heheheh"
}
]
}
print(dict["data"]["time"])
i need this output
1660582745, 1660568345
this works but i need it without loop
for i in data["data"]:
print(i["time"])
output:
1660582745
1660568345