{"id":22305645,"url":"https://github.com/saili-shinde/hackerrank","last_synced_at":"2026-02-24T19:35:21.069Z","repository":{"id":185780116,"uuid":"550025485","full_name":"saili-shinde/Hackerrank","owner":"saili-shinde","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-12T05:35:45.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T21:33:51.348Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/saili-shinde.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}},"created_at":"2022-10-12T05:01:58.000Z","updated_at":"2022-10-12T05:01:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"f92b6968-0d7e-4545-b7d8-93f2d381bcea","html_url":"https://github.com/saili-shinde/Hackerrank","commit_stats":null,"previous_names":["saili-shinde/hackerrank"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saili-shinde%2FHackerrank","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saili-shinde%2FHackerrank/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saili-shinde%2FHackerrank/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saili-shinde%2FHackerrank/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saili-shinde","download_url":"https://codeload.github.com/saili-shinde/Hackerrank/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245568584,"owners_count":20636803,"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":[],"created_at":"2024-12-03T19:12:36.722Z","updated_at":"2025-10-24T21:13:10.153Z","avatar_url":"https://github.com/saili-shinde.png","language":null,"readme":"# Hackerrank solutions\n## Python code solution\n### Say \"Hello, World!\" With Python\nHere is a sample line of code that can be executed in Python:\n```\nprint(\"Hello, World!\")\n```\nYou can just as easily store a string as a variable and then print it to stdout:\n```\nmy_string = \"Hello, World!\"\nprint(my_string)\n```\nThe above code will print Hello, World! on your screen. Try it yourself in the editor below!\n\n**Input Format**\n\nYou do not need to read any input in this challenge.\n\n**Output Format**\n\nPrint Hello, World! to stdout.\n\n**Sample Output 0**\n```\nHello, World!\n```\n***code***\n```\nprint(\"Hello, World!\")\n\n\n\n```\n\n### Python If-Else\n**Task**\nGiven an integer,`n`,perform the following conditional actions:\n\nIf`n`is odd, print Weird\nIf`n`is even and in the inclusive range of  to`2`,`5` print Not Weird\nIf`n`is even and in the inclusive range of  to`6`,`20`print Weird\nIf`n`is even and greater than`20`, print Not Weird\n\n**Input Format**\n\nA single line containing a positive integer,`n`.\n\n**Constraints**\n\n`1\u003c=n\u003c=100`\n\n**Output Format**\n\nPrint Weird if the number is weird. Otherwise, print Not Weird.\n\n**Sample Input 0**\n```\n3\n```\n**Sample Output 0**\n```\nWeird\n```\n**Explanation 0**\n\n`n=3`\n `n`is odd and odd numbers are weird, so print Weird.\n**Sample Input 1**\n```\n24\n```\n**Sample Output 1**\n```\nNot Weird\n```\n**Explanation 1**\n\n`n=24`\n\n`n\u003e20`and`n` is even, so it is not weird.\n\n***code***\n```\nimport math\nimport os\nimport random\nimport re\nimport sys\n\n\n\nif __name__ == '__main__':\n    n = int(raw_input().strip())\nif n%2!=0:\n    print('Weird')\nelif n%2==0 and 2\u003c=n\u003c=5:\n    print('Not Weird')\nelif n%2==0 and 6\u003c=n\u003c=20:\n    print('Weird')\nelif n%2==0 and n\u003e20:\n    print('Not Weird')\n\n\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaili-shinde%2Fhackerrank","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaili-shinde%2Fhackerrank","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaili-shinde%2Fhackerrank/lists"}