sample input: MATHEMATICS
output should be:M A T H E I C S
sample input2:banana
outputshould be:b a n
string=input() result=[] for s in string: if not (s in result): result.append(s) print(*result)
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment