This is my code that displays output that I would like to alter:
import json
from collections import OrderedDict
with open('users.json', 'r') as file:
data = json.load(file)
ordered_data = OrderedDict(sorted(data.items(), key=lambda k: -k[1]['balance']))
first = ordered_data.popitem(last=False)
print(first)
Output:
('<@!702221444796383454>', {'balance': 90})
I wanted to code the output like this instead:
702221444796383454 90
I have tried the "".join() and I tried googling things to try and find a solution but I could not find anything.
Select the correct answer from above options