python-workout icon indicating copy to clipboard operation
python-workout copied to clipboard

Can not convert string to int

Open jan-nemec opened this issue 4 years ago • 2 comments

https://github.com/reuven/python-workout/blob/d9ec04ca47aa92fa5d013610dd3bd0dbf8903a8f/ch01-numbers/e01b3_guess_word.py#L19

The user input is a word. We are guessing the word so we don't need to convert the user input into the integer.

jan-nemec avatar Feb 06 '21 19:02 jan-nemec

Yikes, I guess I did a bit too much copying and pasting here. I'll merge your fix and make some others, too.

reuven avatar Feb 07 '21 13:02 reuven

Sorry if I missed something but... If we perform comparing as presented in the file we will compare words by lexicographical order of the but not by order in set. image

Andrey-Ilyichev avatar Nov 13 '21 10:11 Andrey-Ilyichev