Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Last active January 10, 2024 15:34
Show Gist options
  • Select an option

  • Save wilmoore/714d4fa5fca47e06024dc19bc8b6c14b to your computer and use it in GitHub Desktop.

Select an option

Save wilmoore/714d4fa5fca47e06024dc19bc8b6c14b to your computer and use it in GitHub Desktop.
Software Engineering :: Programming :: Languages :: Python :: Example Code

Software Engineering :: Programming :: Languages :: Python :: Example Code

⪼ Made with 💜 by Polyglot.

valuesum.py

input = [3, "a", 100, "b", 200, "c", 300]

value_count = input[0]
dict_values = input[1:]

output_dictionary = {
  "a": 100,
  "b": 200,
  "c": 300
}

sum(output_dictionary.values())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment