Program code is correct but fails with the test cases...can any help with this..
Created 2 years ago
42
Views
1
Comments
Write a code to get the input in the given format and print the output in the given format
Input Description:
A single line contains a string.
Output Description:
Print the characters in a string separated by space.
My code:
data = str(input())
st = ""
for i in range(0,len(data)):
st = st + data[i] + " "
print(st)
Sample Input :
guvi
Sample Output :
g u v i