Skip to content

inconsistent use of tabs and spaces in indentation #40

@Bej1u

Description

@Bej1u

Hi out there,had an issue with line 11.Can anyone tell me why it shows TabError bcz everything seems to be right?
Thank you

secret_word = "Lion"
guess = ""
guess_count = 0
guess_limit = 3
out_of_guesses = False

while guess !=secret_word and not(out_of_guesses):
if guess_count < guess_limit:
guess = input("Enter guess: ")
11. guess_count += 1--------------------- File "Building a Guessing Game.py", line 11

               ^
                                                                 **TabError:** inconsistent use of tabs and spaces in indentation

                                                                                                    ***Repl Closed***


else:
    out_of_guesses = True   

if out_of_guesses:
print("Out_of_guesses, YOU LOSE!")
else:
print("You win!")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions