Write a program to print the following output
Input
The input is a single line string S.
Explanation
The input should be MATHEMATICS.
The output should be M A T H E I C S.
Sample Input1
MATHEMATICS
Sample output1
M A T H E I C S
in_str = input()
new_str = ''
for ch in in_str:
if ch not in new_str:
new_str += ch + ' '
print(new_str)
Comments
Leave a comment