Create a Python program that takes a sentence as an input and replaces all the blank spaces with hyphens.
The quick brown fox
def replace_spaces(str):
 return str.replace(" ", "-")
 
print(replace_spaces("The quick brown fox"))  # Result: The-quick-brown-fox