HW4 required apostrophes

gianluca5539 (9820 points)
3 6 44
asked Nov 11, 2021 in HW4 by gianluca5539 (9,820 points)
recategorized Nov 11, 2021 by gianluca5539

@andrea.sterbini I think you could help me with this one. How should we handle words with apostrophes? Should we just remove the part after the apostrophe and use the part before the apostrophe? It would be helpful if someone could tell me how to handle these things. Thank you very much

236 views

2 Answers

mauman (880 points)
18 25 30
answered Nov 11, 2021 by mauman (880 points)
hi,

you can check the examples in the text of the homework!
gianluca5539 (9820 points)
3 6 44
commented Nov 11, 2021 by gianluca5539 (9,820 points)
I did, and in fact the code works for the example. It doesn't work for the other tests, which include words with apostrophes

For example: it works for e'en but not for we'll

Did I forget something?
andrea.sterbini (172680 points)
511 927 1776
commented Nov 11, 2021 by andrea.sterbini (172,680 points)
Read the note in the HW4 page
leonardo_13 (1530 points)
6 13 20
answered Nov 12, 2021 by leonardo_13 (1,530 points)
Read the note in the HW4 page