Ответ: row={‘a’:0,’b’:1,’c’:2,’d’:3,’e’:4,’f’:5,’g’:6,’h’:7}pos=input(‘Введите координату коня: ‘)posy=row[pos[0]]posx=int(pos[1])-1desk=[]for i in range(8): list=[] for j in range(8): list.append(‘.’) desk.append(list)desk[posx][posy]=’K’if posx>1: if posy>0: desk[posx-2][posy-1]=’*’ if posy<7: desk[posx-2][posy+1]=’*’
Ответ: if posx<6: if posy>0: desk[posx+2][posy-1]=’*’ if posy<7: desk[posx+2][posy+1]=’*’if posy>1: if posx>0: desk[posx-1][posy-2]=’*’ if posx<7: desk[posx+1][posy-2]=’*’if posy<6: if posx>0: desk[posx-1][posy+2]=’*’ if posx<7: desk[posx+1][posy+2]=’*’for i in range(8): print(‘ ‘.join(desk[i]))