Open this example in the interactive library
Source code
options = {'a': 1, 'b': 2}
print(next(reversed(options.items())))Sample output
('b', 2)
Open this example in the interactive library
options = {'a': 1, 'b': 2}
print(next(reversed(options.items())))('b', 2)