Jul-07-2017, 08:27 PM
I am programing a simple thing where you just have to chose between yes and no but for one reason when I run it PowerShell says this:
TabError: inconsistent use of tabs and spaces in indentation
PS C:\Users\Bernardo\desktop\Python Learning> python .\Introduct
File ".\Introduction.py", line 17
print(' Will you be the chosen one? (Yes or No)')
^
TabError: inconsistent use of tabs and spaces in indentation
TabError: inconsistent use of tabs and spaces in indentation
PS C:\Users\Bernardo\desktop\Python Learning> python .\Introduct
File ".\Introduction.py", line 17
print(' Will you be the chosen one? (Yes or No)')
^
TabError: inconsistent use of tabs and spaces in indentation
def play(): play = '' while play !='yes' and cave != 'no': print(' Will you be the chosen one? (Yes or No)') play = input() return play if play == 'yes': print('So, young adventurer, what is your name?') yourName = input() if play == 'no': print('Then why are you playing this game dear inferior human? or is it that you are frightened ? C´mon you pussy, say yes!') return play