import requests

parameter = {
    "amount":10,
    "type":"boolean"
}
response = requests.get(url="https://opentdb.com/api.php",params=parameter)
data = response.json()
question_data = data["results"]

4a73307191e403a36a9fc91d2705e7ab9f93ee13
<mask token>

<mask token>
parameter = {'amount': 10, 'type': 'boolean'}
response = requests.get(url='https://opentdb.com/api.php', params=parameter)
data = response.json()
question_data = data['results']

import requests
parameter = {'amount': 10, 'type': 'boolean'}
response = requests.get(url='https://opentdb.com/api.php', params=parameter)
data = response.json()
question_data = data['results']

import requests

parameter = {
    "amount":10,
    "type":"boolean"
}
response = requests.get(url="https://opentdb.com/api.php",params=parameter)
data = response.json()
question_data = data["results"]
