human
Write a function that takes in a string and character, replaces blank spaces in the string with the character, and returns the string. Here is a solution in Python:
assistant
#Here is the Python code you requested.
 def replace_blank(str1,char):
 str2 = str1.replace(' ', char)
 return str2