{"id":20041695,"url":"https://github.com/ajithvcoder/session_10_sequence_types","last_synced_at":"2025-08-27T11:11:40.701Z","repository":{"id":111987585,"uuid":"386785155","full_name":"ajithvcoder/Session_10_Sequence_Types","owner":"ajithvcoder","description":"Assignment 10 of EPAi","archived":false,"fork":false,"pushed_at":"2021-07-16T23:10:16.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T07:14:20.997Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ajithvcoder.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}},"created_at":"2021-07-16T23:07:31.000Z","updated_at":"2021-07-16T23:10:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"68c01213-042e-4f11-aa6c-d4e8dbdbeb46","html_url":"https://github.com/ajithvcoder/Session_10_Sequence_Types","commit_stats":null,"previous_names":["ajithvcoder/session_10_sequence_types"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ajithvcoder/Session_10_Sequence_Types","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajithvcoder%2FSession_10_Sequence_Types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajithvcoder%2FSession_10_Sequence_Types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajithvcoder%2FSession_10_Sequence_Types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajithvcoder%2FSession_10_Sequence_Types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajithvcoder","download_url":"https://codeload.github.com/ajithvcoder/Session_10_Sequence_Types/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajithvcoder%2FSession_10_Sequence_Types/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272324905,"owners_count":24914527,"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","status":"online","status_checked_at":"2025-08-27T02:00:09.397Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-13T10:47:33.831Z","updated_at":"2025-08-27T11:11:40.674Z","avatar_url":"https://github.com/ajithvcoder.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"print in test file and output in notebook\n\n### Session 10 - Sequence Types\n\n**Polygon class** \n\nA polygon class is formed with a input of edges and circum radius. \n\n- __init__() function does necessary calculations and sets interior angle, edge length, apothem, area and perimeter.\n- __repr__() provides information to user. \n\n- __eq_() provides equality function . Initally we are checking if it belongs to polygon class if so we are checking the edges and circum radius of the polygon and deciding the equality\n\n- __gt__() provides greater than function. Initially we are checking if it belongs to polygon class if so we are checking the vertices\n\n**Custom polygon class**\n\nIn Custom polygon class we are taking maximum vertices that a sequence of polygons can have and a common circum radius for it.\n\n- __init__() we are setting edges, circum radius and maximum efficeint polygon property\n\n- get_efficient_polygon()  provides number of vertices of efficient polygon. We are iterating from 3 to 10 and we are checking area/perimeter ration for each polygon formed from Polygon() class for efficiency\n\n- __getitem__() provides a sequnce inaccordance with num value given . We can use it as a iterator like A[1], we can give a slice A[2:9:2], we can also get it as a list list(A)\n\n- __len__() provides number of polygon asked by user\n\n- __repr__() provides information to user about polygon class\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajithvcoder%2Fsession_10_sequence_types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajithvcoder%2Fsession_10_sequence_types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajithvcoder%2Fsession_10_sequence_types/lists"}