Nov-22-2019, 08:07 PM
If you give set the full string, it will break it into characters. But if you give it a list of strings, it won't break the individual strings apart:
Fi = Fish.split(',') Fi = list(set(Fi)) Fi.sort()I can tell you are using 2.7 because you use raw_input. In 3.0+, input is what raw_input was in 2.7, and raw_input doesn't exist. That code would give you a NameError in the latest version. If that is what you are using at work, you should point out to them that 2.7 will receive no security updates after the end of the year, and they should upgrade to the newest version. But note that 3.0 broke backward compatibility, so you may need to upgrade your code first.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures