r/inventwithpython • • Dec 20 '15

chapter 9: Hangman

I have typed the program but it doesn't run.showing ''inconsistent use of tabs and spaces in indentation" on line 73. I have enter the the program exactly as it is given in the book.

70. print('Missed letters:', end=' ') 71. for letter in missedLetters: 72. print(letter, end=' ') 73. print()

2 Upvotes

2 comments sorted by

3

u/Algee Dec 20 '15

Python does not like it when you mix up spaces and tab's. Make sure all your indentation is the same.

1

u/Nick_Aaron Jan 23 '16

You shouldn't use both tabs and spaces at the same time in a source file!