import os
miss=[]
wordHide=[]
wordIs = list(input('Загадайте слово '))
for x in wordIs: wordHide.append('_')
i=0
while i < 7:
try:
os.system('cls')
except:
os.system('clear')
print('')
print('--------')
print('| / |')
if i>=3:
print('|/ _0_')
elif i==2:
print('|/ 0_')
elif i==1:
print('|/ 0 ')
elif i==0:
print('|/ ')
if i>=4:
print('| |')
else:
print('| ')
if i<5:
print('| ')
elif i==5:
print('| / ')
elif i>5:
print('| / \\')
print('|')
print('--------')
print('')
print(' '.join(wordHide))
print('')
print('')
print(','.join(miss))
print('')
print('')
if i==6:
print('Вы проиграли!')
i+=1
else:
a=input('Введите букву ')
a=a[0]
if a not in wordIs:
i+=1
miss.append(a)
else:
for j,e in enumerate(wordIs):
if e == a:
wordHide[j]=a
aW1wb3J0IG9zCm1pc3M9W10Kd29yZEhpZGU9W10Kd29yZElzID0gbGlzdChpbnB1dCgn0JfQsNCz0LDQtNCw0LnRgtC1INGB0LvQvtCy0L4gJykpCmZvciB4IGluIHdvcmRJczogd29yZEhpZGUuYXBwZW5kKCdfJykKaT0wCndoaWxlIGkgPCA3OgoJdHJ5OgoJCW9zLnN5c3RlbSgnY2xzJykKCWV4Y2VwdDoKCQlvcy5zeXN0ZW0oJ2NsZWFyJykKCXByaW50KCcnKQoJcHJpbnQoJy0tLS0tLS0tJykKCXByaW50KCd8IC8gICAgfCcpCglpZiBpPj0zOgoJCXByaW50KCd8LyAgICBfMF8nKQoJZWxpZiBpPT0yOgoJCXByaW50KCd8LyAgICAgMF8nKQoJZWxpZiBpPT0xOgoJCXByaW50KCd8LyAgICAgMCAnKQoJZWxpZiBpPT0wOgoJCXByaW50KCd8LyAgICAgICAnKQoJaWYgaT49NDoKCQlwcmludCgnfCAgICAgIHwnKQoJZWxzZToKCQlwcmludCgnfCAgICAgICAnKQoJaWYgaTw1OgoJCXByaW50KCd8ICAgICAgICcpCgllbGlmIGk9PTU6CgkJcHJpbnQoJ3wgICAgIC8gJykKCWVsaWYgaT41OgoJCXByaW50KCd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