Sorry for this basic question but my searches on this are not turning up anything other than how to get a dictionary\'s key based on its value which I would prefer not to us
if you just need to get a key-value from a simple dictionary like e.g:
os_type = {'ubuntu': '20.04'}
use popitem() method:
popitem()
os, version = os_type.popitem() print(os) # 'ubuntu' print(version) # '20.04'