0 out of 464 challenges solved
Write a Python function `return_sum` that takes a dictionary as input and returns the sum of all its values. The dictionary will have strings as keys and integers as values.
#### Example Usage
```python [main.nopy]
print(return_sum({'a': 100, 'b': 200, 'c': 300})) # Output: 600
print(return_sum({'x': 25, 'y': 18, 'z': 45})) # Output: 88
print(return_sum({'p': 36, 'q': 39, 'r': 49})) # Output: 124
```def return_sum(input_dict):
"""
Calculate the sum of all values in the given dictionary.
Args:
input_dict (dict): A dictionary with string keys and integer values.
Returns:
int: The sum of all values in the dictionary.
"""
# Initialize the sum variable
total = 0
# Iterate through the dictionary values and calculate the sum
# Placeholder for the solution
return total