Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
test_data = {"key1": "val1", "key2": "val2", "key3": "val3", "key4": "val4"}
https://test.requests.su/id-number?symbol={key}
import requests test_data = {"key1": "val1", "key2": "val2", "key3": "val3", "key4": "val4"} for item in test_data.values(): requests.get(f"https://test.requests.su/id-number?symbol={item}")
import requests test_data = {"key1": "val1", "key2": "val2", "key3": "val3", "key4": "val4"} for s in test_data.keys(): qer = requests.get(f"https://test.requests.su/id-number?symbol={s}") print = (s) print = (qer.status_code)