Здраствуйте! Есть вот такая функция:
def get_info_by_name(name):
with open("data.json", "r") as read_file:
data = json.load(read_file)
recieve = data[name][0]["recieve"]
pulselenght = data[name][0]["pulselenght"]
protocol = data[name][0]["protocol"]
return recieve, pulselenght, protocol
Json файл:
{
"test1": [
{
"recieve": "148804ko",
"pulselenght": "228",
"protocol": "3"
}
]
}
И после я делаю принт:
print("Hello! 1>Listen 2>Send 3>Read data from json")
choose = int(input("> "))
if choose == 1:
pass
if choose == 2:
print("Enter name of record")
name = input("> ")
print(get_info_by_name(name))
if choose == 3:
pass
И происходит вот такой вывод:

Как мне получить эти значения по отдельности? (Вот эти ('148804ko', '228', '3') )