Answer to Question #281883 in Python for sai

Question #281883

sample input: MATHEMATICS

output should be:M A T H E I C S

sample input2:banana

outputshould be:b a n


1
Expert's answer
2021-12-21T17:20:14-0500
string=input()
result=[]
for s in string:
    if not (s in result):
        result.append(s)
print(*result)

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