# -*- coding: utf-8 -*- """ Created on Mon Oct 19 14:24:29 2015 Kwadrat z zadawanym obszarem rysowania @author: md316445 """ x0 = 5 y0 = 2 N = 19 bok = 10 nic = ' ' sting = '' for y in range(0,N): print() for x in range(0, N): if x-x0==0 or y-y0==0 or x-x0==bok-1 or y-y0==bok-1: print('*',end='') elif x-x0==(y-y0): print('*',end='') elif x-x0==(bok-1-(y-y0)): print('*',end='') else: print(' ', end='')