{"id":20641882,"url":"https://github.com/rogerisk/python-debugging","last_synced_at":"2025-07-02T07:05:51.133Z","repository":{"id":244422294,"uuid":"815188589","full_name":"RogerIsk/python-debugging","owner":"RogerIsk","description":"Python tasks that concentrate on debugging","archived":false,"fork":false,"pushed_at":"2024-06-14T15:12:26.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-09T12:56:51.348Z","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/RogerIsk.png","metadata":{"files":{"readme":"README-2.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":"2024-06-14T14:42:19.000Z","updated_at":"2024-06-14T15:12:29.000Z","dependencies_parsed_at":"2024-06-14T16:42:21.567Z","dependency_job_id":"0c12928e-33c7-43f1-9919-17475743cb12","html_url":"https://github.com/RogerIsk/python-debugging","commit_stats":null,"previous_names":["rogerisk/python-debugging"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RogerIsk/python-debugging","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RogerIsk%2Fpython-debugging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RogerIsk%2Fpython-debugging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RogerIsk%2Fpython-debugging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RogerIsk%2Fpython-debugging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RogerIsk","download_url":"https://codeload.github.com/RogerIsk/python-debugging/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RogerIsk%2Fpython-debugging/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263091028,"owners_count":23412343,"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-11-16T16:07:08.684Z","updated_at":"2025-07-02T07:05:51.114Z","avatar_url":"https://github.com/RogerIsk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Debugging - ipdb\n\n# Task 2\n\nMake sure you have `ipdb` installed as follows\n\n```\npip install ipdb\n```\n\nBelow you have a fizz buz application that is buggy - fix it but before you do, try to use ipdb to investigate\n\n```\ndef fizzbuzz(maximum_value):\n    for n in range(maximum_value):\n        if n % 3 == 0:\n            print('Fizz')\n        elif n % 5 == 0:\n            print('Buzz')\n        elif n % 5 == 0 and n % 3 == 0:\n            print('FizzBuzz')\n        else:\n            print(n)\n```\n\n### Recap\n\n**What is the fizzbuzz algorithm?**\n\n_It is a function that prints out \"Fizz\" when a number is a multiple of 3, prints out \"Buzz\" when a number is a mutliple of 5, if the number is a multiple of both 3 and 5, \"FizzBuzz\" gets printed, otherwise you can optionally print the value of the number (usually we loop over a range of numbers when answering this question)_\n\n## Steps for your experiment\n\n- Use `import ipdb; ipdb.set_trace()` to help determine what could be wrong about this function\n\n## Task 3\n\n## Find the n'th number in the fibonacci sequence\n\n_The Fibonaccic sequence is defined as follows. The first number of the sequence\nis 0, the second number of the sequence is 1 and the following numbers in the sequence (n) are the sum of the previous 2 numbers before it._\n\nThe following function is provided as starter code for exploring\n\n- Print out the values being memoized in a set\n\n```\n# This function returns values quite fast O(n) time or O(n) space, it also has an error\ndef get_n(n, memoize={1: 0, 2: 1}):\n    if n in memoize:\n        memoize[n]\n    else:\n        memoize[n] = get_n(n - 1, memoize) + get_n(n-2, memoize)\n    return memoize[n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogerisk%2Fpython-debugging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frogerisk%2Fpython-debugging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogerisk%2Fpython-debugging/lists"}