c4c8ae2
1
2
3
4
5
6
# Function to get the first key different than 'Undefined' def get_first_valid_key(dictionary, invalid_key = 'Undefined'): for key in dictionary: if key != invalid_key: return key return None