Want a Free Job Posting?

Buy a job posting today and the second one is on us. For a limited time only. Act Now.

Interview Question

Interview(Student Candidate) Hyderābād (India)

Remove repeated characters from a string


Interview Answer

1 Answer


Answer in python: string = "hello David, how are you doing?" string2 = "" for letter in string: if (not letter in string2) or letter == " ": string2 = string2 + letter print string print string2

Python Answer on Feb 3, 2013

Add Answers or Comments

To comment on this, Sign In or Sign Up.