Answer to Question #327341 in Python for Vasu

Question #327341

Write a program to print the not repeated string.


Input

The input contains a string S.


Output

The output contains a string, not repeated string.



1
Expert's answer
2022-04-11T16:50:29-0400

string = str(input())

Set = set()

answer_string = ""

for el in string:

  if (el not in Set):

    answer_string += el

    Set.add(el)

print(answer_string)


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