For example,
Thanks Craig! I read all of this and realize that my problems would be moot if I just follow the code how I wrote it, and JUST paste one section of excel data. I have a few questions, however.
As for the 2.7, I have no idea how you could tell, but will my code not work in the latest version? I'm using my work's IDLE program.
Paste excel data: blacknose dace Blacknose dacereturns
[Blacknose dace Blacknose dace]and
Paste excel data: blacknose dace, Blacknose dace, blacknose dace blacknose dace Blacknose dacereturns
[ Blacknose dace, Blacknose dace Blacknose dace Blacknose dace, Blacknose dace]I would like all of these to just return "Blacknose dace"
Thanks Craig! I read all of this and realize that my problems would be moot if I just follow the code how I wrote it, and JUST paste one section of excel data. I have a few questions, however.
(Nov-19-2019, 06:59 PM)ichabod801 Wrote: You don't need OrderedDict. You sort the result after making a list of it, so you lose any order stored in OrderedDict. So you can just use set to remove the duplicates.The ordereddict isn't the best option, but it does seemingly remove my duplicates (when this is used properly), but I'm unsure how to use set? I tried that but it splits all my words into letters? I get the desire to code efficiently, but it does seem to work.
Finally, you are using version 2.7. You need to upgrade to the latest version. End of life for 2.7 is in 42 days.
As for the 2.7, I have no idea how you could tell, but will my code not work in the latest version? I'm using my work's IDLE program.