Я пишу следующую программу для отображения случайного цвета из списка. я получаю эту ошибку: «unindent не соответствует ни одному уровню внешнего отступа»
import random
colors = [ "white", "black", "red", "green", "Yellow", "purple", "grey "]
while True :
color = colors [random.randint(0, len(colors)-1)]
guess = input ("i'm thinking about a color , can you guress it :")
while True:
if (color == guess.lower()):
break
else:
guess = input ("Nope. Try again :")
print ( "you guessed it ! I was thinking about ", colour)
play_again = input ("Let's play again T")
Подробнее здесь: https://stackoverflow.com/questions/718 ... ntation-le
Мобильная версия