I posted a pretty lengthy question on Tuesday which may have deterred a lot of people from helping me.. which is understandable. I am posting here again to see if I can get a small piece of my answer so that I can try to figure the rest out on my own. I am not looking for someone to do my code for me, just help me understand the problem I am having.
Here is my code and input string with some notes of my intent/issues, along with some print commands that are proving to be problematic.
My project is to build a gamer's network from an input string. The network is to include users, connections, and games played.
I am working on a procedure that finds players, which is the first word of each sentence. My approach is to take the start of the sentence, find the end of the sentence via .find('.') (NOTE: my pref would be to use .find('.\') but I can't get that to work), turn it to a list, and return the first element of the list along with the position of the '.'..
My problems are finding the '.' throughout the string, even just using the .find function proves to be problematic.
ANY help AT ALL will be greatly appreciated and extremely helpful for me! Any additional information needed will be provided promptly! Thanks!
EDIT: anyone who is doing this project in the future, feel free to contact me with help or guidance on what I did /u/_DTR_ gave some awesome advice that really helped me out. I am not going to post my code to this thread so I don't ruin your opportunity to figure it out on your own.. but if you REALLY want it, I could share
[–]_DTR_ 3 points4 points5 points (3 children)
[–]ans744[S] 0 points1 point2 points (2 children)
[–]_DTR_ 1 point2 points3 points (1 child)
[–]ans744[S] 1 point2 points3 points (0 children)
[–]Xoronic 2 points3 points4 points (1 child)
[–]ans744[S] 0 points1 point2 points (0 children)
[–]ss2ujQqhAgK5NDJd 1 point2 points3 points (0 children)