def uppercase(data): '''takes a non nested dictionary and converts the values to uppercase''' output = {} for k, v in data.items(): output[k] = v.upper() return output