{"id":20315740,"url":"https://github.com/kkoomen/4-four","last_synced_at":"2025-10-08T15:55:32.121Z","repository":{"id":146977720,"uuid":"146085259","full_name":"kkoomen/4-four","owner":"kkoomen","description":"A sandbox project and example demo of Matt Parker's \"Four has Four Letters\" video.","archived":false,"fork":false,"pushed_at":"2018-11-22T20:09:25.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-14T12:53:10.213Z","etag":null,"topics":["fixed","four","itself","map","matt","parker","point"],"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/kkoomen.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":"2018-08-25T10:09:59.000Z","updated_at":"2018-11-22T20:09:26.000Z","dependencies_parsed_at":"2023-05-23T11:45:14.551Z","dependency_job_id":null,"html_url":"https://github.com/kkoomen/4-four","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkoomen%2F4-four","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkoomen%2F4-four/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkoomen%2F4-four/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkoomen%2F4-four/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kkoomen","download_url":"https://codeload.github.com/kkoomen/4-four/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241818872,"owners_count":20025210,"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":["fixed","four","itself","map","matt","parker","point"],"created_at":"2024-11-14T18:21:20.204Z","updated_at":"2025-10-08T15:55:27.056Z","avatar_url":"https://github.com/kkoomen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 4-four\n\nThanks to the wonderful mathematic explanation of Matt Parker in the\n[video](https://www.youtube.com/watch?v=LYKn0yUTIU4) where he explained that\nthe number 4 is the only number that has the same number of letters as its\nvalue in some languages, such as DE, NL and EN.\n\n\u003e _\"4 is is a fixed point, it doesn't go anywhere. It maps to itself.\"_\u003cbr/\u003e\n\u003e _- Matt Parker_\n\nMatt explained that no matter what number you would take, it would always end\nup at the number 4. So I wrote a script that uses his logic from the video in a\nfunction that shows the output of the sequence to test wether it is true or\nnot.\n\nNOTE: Only `[a-zA-Z]` are taken into account when counting the characters. Any\nother character is ignored.\n\nExample run:\n\n```\n$ ./four.py 847193 en\n==============================\nSTARTING SEQUENCE\nstarting number =\u003e 847.193\n==============================\n847.193 =\u003e eight hundred and forty-seven thousand, one hundred and ninety-three =\u003e 57\n57 =\u003e fifty-seven =\u003e 10\n10 =\u003e ten =\u003e 3\n3 =\u003e three =\u003e 5\n5 =\u003e five =\u003e 4\n==============================\n```\n\n# Getting started\n\n```\n$ git clone https://github.com/kkoomen/4-four.git\n$ cd 4-four\n$ pip3 install virtualenv\n$ virtualenv .\n$ source bin/activate\n$ pip3 install -r requirements.txt\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkoomen%2F4-four","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkkoomen%2F4-four","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkoomen%2F4-four/lists"}