{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"import turtle as t\n\n\ndef nose():\n    t.penup()\n    t.seth(90)\n    t.fd(100)\n    t.pendown()\n    t.begin_fill()\n    t.fillcolor(\"black\")\n    t.seth(45)\n    t.fd(25)\n    t.seth(135)\n    t.circle(25, 90)\n    t.seth(315)\n    t.fd(25)\n    t.end_fill()\n\n\ndef eyes(seth, fd, c):\n    t.penup()\n    t.seth(seth)\n    t.fd(fd)\n    t.pendown()\n    t.begin_fill()\n    t.fillcolor('black')\n    t.circle(50)\n    t.end_fill()\n    t.penup()\n    t.circle(50, c)\n    t.pendown()\n    t.begin_fill()\n    t.fillcolor('white')\n    t.circle(20)\n    t.end_fill()\n\n\ndef face(seth, fd):\n    t.penup()\n    t.seth(seth)\n    t.fd(fd)\n    t.pendown()\n    t.begin_fill()\n    t.fillcolor('red')\n    t.circle(70)\n    t.end_fill()\n\n\ndef lip():\n    t.penup()\n    t.seth(135)\n    t.fd(250)\n    t.pendown()\n    t.seth(-300)\n    t.circle(30, -65)\n    t.begin_fill()\n    t.fillcolor('Firebrick')\n    t.seth(165)\n    t.fd(140)\n    t.seth(195)\n    t.fd(140)\n    t.seth(-360)\n    t.circle(30, -65)\n    t.penup()\n    t.seth(-60)\n    t.circle(30, 65)\n    t.pendown()\n    t.seth(-70)\n    t.fd(240)\n    t.circle(55, 140)\n    t.seth(70)\n    t.fd(240)\n    t.end_fill()\n    t.seth(-110)\n    t.fd(80)\n    t.begin_fill()\n    t.fillcolor('Firebrick')\n    t.seth(120)\n    t.circle(120, 123)\n    t.seth(-70)\n    t.fd(165)\n    t.circle(55, 140)\n    t.seth(72)\n    t.fd(165)\n    t.end_fill()\n\n\ndef setting():\n    t.pensize(4)\n    t.hideturtle()\n    t.setup(1000, 600)\n    t.speed(10)\n    t.screensize(bg=\"yellow\")\n\n\ndef main():\n    setting()\n    nose()\n    eyes(160, 250, 60)\n    eyes(-9.5, 530, 230)\n    face(195, 600)\n    face(-11, 720)\n    lip()\n    t.done()\n\n\nif __name__ == '__main__':\n    main()","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2021-08-03T06:47:06.880903Z","iopub.execute_input":"2021-08-03T06:47:06.881398Z","iopub.status.idle":"2021-08-03T06:47:06.934885Z","shell.execute_reply.started":"2021-08-03T06:47:06.881354Z","shell.execute_reply":"2021-08-03T06:47:06.932808Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from turtle import *\ncolor('red', 'yellow')\nbegin_fill()\nwhile True:\n    forward(200)\n    left(170)\n    if abs(pos()) < 1:\n        break\nend_fill()\ndone()","metadata":{"execution":{"iopub.status.busy":"2021-08-03T06:47:06.936222Z","iopub.status.idle":"2021-08-03T06:47:06.937056Z"},"trusted":true},"execution_count":null,"outputs":[]}]}