{"id":21,"date":"2025-12-03T16:13:54","date_gmt":"2025-12-03T16:13:54","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/q_alobeid\/?p=21"},"modified":"2025-12-03T16:13:54","modified_gmt":"2025-12-03T16:13:54","slug":"free-friday-11-14","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/q_alobeid\/2025\/12\/03\/free-friday-11-14\/","title":{"rendered":"Free Friday 11\/14"},"content":{"rendered":"\n<p>I made a heart using turtle <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import turtle\nimport time\n\n\nscreen = turtle.Screen()\nscreen.bgcolor(\"black\")\n\nleo = turtle.Turtle()\nleo.speed(0)\nleo.hideturtle()\n\ndef draw_heart(x, y):\n    leo.penup()\n    leo.goto(x, y)\n    leo.pendown()\n    leo.color(\"red\", \"pink\")\n    leo.begin_fill()\n    leo.left(50)\n    leo.forward(133)\n    leo.circle(50, 200)\n    leo.right(140)\n    leo.circle(50, 200)\n    leo.forward(133)\n    leo.end_fill()\n    leo.setheading(0)  # reset orientation\n\n\nx = -200\ndirection = 5\n\nwhile True:\n    leo.clear()\n    draw_heart(x, -50)\n    x += direction\n    if x > 200 or x &lt; -200:  \n        direction *= -1\n    time.sleep(0.05)\n\nturtle.mainloop()\n<\/code><\/pre>\n\n\n\n<p>It makes a heart and move it <\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I made a heart using turtle It makes a heart and move it<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-21","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/q_alobeid\/wp-json\/wp\/v2\/posts\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/q_alobeid\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/q_alobeid\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/q_alobeid\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/q_alobeid\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/q_alobeid\/wp-json\/wp\/v2\/posts\/21\/revisions"}],"predecessor-version":[{"id":22,"href":"https:\/\/theroyalscode.com\/students\/q_alobeid\/wp-json\/wp\/v2\/posts\/21\/revisions\/22"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/q_alobeid\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/q_alobeid\/wp-json\/wp\/v2\/categories?post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/q_alobeid\/wp-json\/wp\/v2\/tags?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}