Answer to Question #297633 in Python for Charan

Question #297633

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


1
Expert's answer
2022-02-17T16:04:28-0500
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?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS