<human>:  get value by key with default.
<bot>:
 else:
  return default

# Enter the dictionary
dictionary = {"key1": "value1", "key2": "value2"}

# Enter the key
key = "key1"

# Enter the default
default = "default"

# Calling the function
print((get_value_by_key(dictionary, key, default)))

#Example Output
# value1

#Remember to inspect code for bugs.