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)
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments