How can I combine these two lines so the output shows both results next to each other instead of on separate lines? I've tried multiple things but can't get it to work.
print(data.get('unit').get('type'))
print(data.get('unit').get('name'))
If I do:
print(data.get('unit').get('type'), data.get('unit').get('name'))
it will only return one value either type or name