Replace Blank Spaces from String with Hyphens In python

Replace Blank Spaces from String with Hyphens In python

Replace Blank Spaces from String with Hyphens The question is, write a Python program to replace blank spaces available in a given string with hyphens