Skip to content

Conversation

@Sukanya-Mahapatra
Copy link
Contributor

@Sukanya-Mahapatra Sukanya-Mahapatra commented Jun 14, 2020

inp_string = input("Enter string: ").split()
out_string = []
for words in inp_string:
if words not in out_string:
out_string.append(words)
print(" ".join(sorted(out_string)))

This is easiest method i found

print(" ".join(word))
```

**OR**
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inp_string = input("Enter string: ").split()
out_string = []
for words in inp_string:
if words not in out_string:
out_string.append(words)
print(" ".join(sorted(out_string)))

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the most convenient method i found

@darkprinx darkprinx merged commit 2759fa8 into darkprinx:master Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants