pimento[w07]$ python3 Python 3.6.6 (default, Sep 12 2018, 18:26:19) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux Type "help", "copyright", "credits" or "license" for more information. >>> line = "name major year\n" >>> line 'name major year\n' >>> tokens = line.split() >>> tokens ['name', 'major', 'year'] >>> line.split("a") ['n', 'me m', 'jor ye', 'r\n'] >>> info = "name major year\nminor dorm\n" >>> print(info) name major year minor dorm >>> line.split(" ") ['name', 'major', 'year\n'] >>> line = "name,major,year\n") File "", line 1 line = "name,major,year\n") ^ SyntaxError: invalid syntax >>> line = "name,major,year\n" >>> line.split(',') ['name', 'major', 'year\n'] >>> line.strip() 'name,major,year' >>> line 'name,major,year\n' >>> >>> mystr = "\n \t hello\n\n\t " >>> mystr '\n \t hello\n\n\t ' >>> print(mystr) hello >>> mystr.strip() 'hello' >>> clean = mystr.strip() >>> clear Traceback (most recent call last): File "", line 1, in NameError: name 'clear' is not defined >>> clea Traceback (most recent call last): File "", line 1, in NameError: name 'clea' is not defined >>> clean 'hello' >>> >>> >>> >>> >>> s = "philadelphia" >>> s.count("a") 2 >>> s.count("z") 0 >>> s.upper() 'PHILADELPHIA' >>> s 'philadelphia' >>> >>> t = "philly!" >>> t.isalpha() False >>> s.isalpha() True >>> s.split("la") ['phi', 'delphia'] >>> s.index("la") 3 >>> s.split("a") ['phil', 'delphi', ''] >>> s = "hello philly" >>> s.isalpha() False >>> s = "hellophilly\n" >>> s.isalpha() False >>> exit() pimento[w07]$ python3 ~/Documents/word_guesser_solution.py current progress: _ _ _ _ _ _ _ bad letters: Enter a new letter: r current progress: _ _ _ _ _ r _ bad letters: Enter a new letter: s current progress: _ _ s _ _ r _ bad letters: Enter a new letter: t current progress: _ _ s t _ r _ bad letters: Enter a new letter: i current progress: _ _ s t _ r _ bad letters: i Enter a new letter: a current progress: _ _ s t _ r _ bad letters: i a Enter a new letter: e current progress: _ _ s t e r _ bad letters: i a Enter a new letter: o current progress: _ _ s t e r _ bad letters: i a o Enter a new letter: y current progress: _ y s t e r y bad letters: i a o Enter a new letter: m current progress: m y s t e r y bad letters: i a o Congratulations, you solved it! pimento[w07]$