Python Program to Replace Blank Space with Hyphen in a String

Write a Python program to Replace Blank Space with Hyphen in a String using replace function, and For Loop with a practical example. Python Program to Replace Blank Space with Hyphen in a String Example 1 This python program allows the user to enter a string. Next, we used built-in replace string function to replace empty space with a … Read more