Skip to content

Instantly share code, notes, and snippets.

@MrAmbiG
Created August 11, 2019 18:40
Show Gist options
  • Save MrAmbiG/cf02a05d44c51fecb7067d9878fe77eb to your computer and use it in GitHub Desktop.
Save MrAmbiG/cf02a05d44c51fecb7067d9878fe77eb to your computer and use it in GitHub Desktop.

Revisions

  1. MrAmbiG created this gist Aug 11, 2019.
    6 changes: 6 additions & 0 deletions uppercase
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    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