2 Antworten
+ 5
BLACK GAMING
You can't use break outside the loop. Your code is not properly indented. Please first indent your code properly. Otherwise you will face problem again and again.
Without proper indentation of code may create many confusion.
This is the example of proper indented code:
for char in word:
if char in guess:
print(char)
else:
print("-")
failed += 1
+ 2
You will need to read about python "Identation".