How to delete repeated character in string...?
"".join([ c for c in txt if txt.count(c)==1])
One way to approach this: * initialize an empty output string * iterate the given string * for each letter, check if it is present exactly once; if yes, append into the output string
YOU mean daaaad to dad or dad to da?
Mississipie to mpe
txt = 'mississipie' new = '' for i in txt: if txt.count(i) < 2: new += i print(new)
Please help me with HTML
What is the mistake here?
Unable to overload +
I have tried every way I could find but still I can't display my local images ..what am I doing wrong?
Pls rectify the errors.
Python list half printed