Problem Description
Write a python program to remove add "Hypen" character in the entered string
Note: Get the input from the user
Refer sample input and output for formatting specification.
All float values are displayed correct to 2 decimal places.
All text in bold corresponds to input and the rest corresponds to output.CODING ARENA
a=input()
print(a.replace(" ","-"))
Test Case 1
Input (stdin)eLab Auto Evaluation tool in india
Expected OutputeLab-Auto-Evaluation-tool-in-india
Test Case 2
Input (stdin)This is a statement with hypen after each spaces
Expected OutputThis-is-a-statement-with-hypen-after-each-spaces
No comments:
Post a Comment