{"id":22699818,"url":"https://github.com/parvathy-vijayan/learn-turtle-for-beginners","last_synced_at":"2025-03-29T19:09:59.086Z","repository":{"id":176565453,"uuid":"659002683","full_name":"PARVATHY-VIJAYAN/Learn-Turtle-for-Beginners","owner":"PARVATHY-VIJAYAN","description":"Turtle is a Python feature like a drawing board, which lets us command a turtle to draw different shapes using certain functions like forward(), right(), left() etc.","archived":false,"fork":false,"pushed_at":"2023-06-27T06:35:16.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T19:45:57.074Z","etag":null,"topics":["python","python-turtle-graphics","turtle","turtle-graphics","turtle-library"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PARVATHY-VIJAYAN.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-27T00:38:29.000Z","updated_at":"2023-06-27T10:40:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"ee19aa65-5250-4aed-88cd-c77a1b2ded2d","html_url":"https://github.com/PARVATHY-VIJAYAN/Learn-Turtle-for-Beginners","commit_stats":null,"previous_names":["parvathy-vijayan/learn-turtle-for-beginners"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PARVATHY-VIJAYAN%2FLearn-Turtle-for-Beginners","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PARVATHY-VIJAYAN%2FLearn-Turtle-for-Beginners/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PARVATHY-VIJAYAN%2FLearn-Turtle-for-Beginners/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PARVATHY-VIJAYAN%2FLearn-Turtle-for-Beginners/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PARVATHY-VIJAYAN","download_url":"https://codeload.github.com/PARVATHY-VIJAYAN/Learn-Turtle-for-Beginners/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246230542,"owners_count":20744349,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","python-turtle-graphics","turtle","turtle-graphics","turtle-library"],"created_at":"2024-12-10T06:08:46.819Z","updated_at":"2025-03-29T19:09:59.070Z","avatar_url":"https://github.com/PARVATHY-VIJAYAN.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Learn-Turtle-for-Beginners\nHere I will introduce a module that allows us to create a data object called a turtle that can be used to draw pictures and different shapes using certain functions like forward(), right(), left() etc.\n\u003cul\u003e\n\u003cli\u003e\n  Here are some basic methods:\n \u003cul\u003e\n    \u003cli\u003eleft()\u003c/li\u003e\n  \t\u003cli\u003eright()\u003c/li\u003e\n  \t\u003cli\u003eforward()\u003c/li\u003e\n \u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003eAttributes:\n\t\u003cul\u003e\n    \u003cli\u003ecolor -default black\u003c/li\u003e\n  \t\u003cli\u003ebgcolor\u003c/li\u003e\n  \t\u003cli\u003eheading\u003c/li\u003e\n  \t\u003cli\u003eposition - 0,0\u003c/li\u003e\n  \t\u003cli\u003epensize(width)\u003c/li\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003cbr\u003e\n\nNow just understand what these methods does:\nleft(90) ---\u003e means our virtual turtle will turn 90 degrees to left from its current position which is considered as 0 degrees.\nright(90) ---\u003e means our virtual turtle will turn 90 degrees to right from its current position.\nforward(150)---\u003e means our virtual turtle will move forward 150 pixel\n\u003chr\u003e\n\nNow understand the code given below :\n\nimport turtle             # allows us to use the turtles library.This line imports the module called turtle, which has all the built in functions for drawing on the screen with the Turtle object.\nwn = turtle.Screen()      # creates a graphics window\nalex = turtle.Turtle()    # create a turtle named alex\nalex.forward(150)         # tell alex to move forward by 150 units\nalex.left(90)             # turn by 90 degrees\nalex.forward(75)          #  tell alex to move forward by 75 units\n\n\u003chr\u003e\n\u003ci\u003eTurtle starts out facing east.\u003c/i\u003e\n\u003chr\u003e\n\n Ok guys now run the above code to understand more functions and attributes of turtle library.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparvathy-vijayan%2Flearn-turtle-for-beginners","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparvathy-vijayan%2Flearn-turtle-for-beginners","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparvathy-vijayan%2Flearn-turtle-for-beginners/lists"}