{"id":3809,"date":"2026-11-12T14:58:24","date_gmt":"2026-11-12T11:58:24","guid":{"rendered":"https:\/\/niteducation.com\/resources\/?p=3809"},"modified":"2026-11-16T11:35:51","modified_gmt":"2026-11-16T08:35:51","slug":"python-projects-after-three-months","status":"publish","type":"post","link":"https:\/\/niteducation.com\/resources\/python-projects-after-three-months\/","title":{"rendered":"Python Projects After Three Months: 8 Beginner Projects"},"content":{"rendered":"\n<article aria-labelledby=\"nit-article-title\" class=\"nit-article nit-article--pathway-guide\" itemscope=\"\" itemtype=\"https:\/\/schema.org\/Article\">\n  <meta content=\"Newton Institute of Technology Editorial Team\" itemprop=\"author\"\/>\n  <meta content=\"en-KE\" itemprop=\"inLanguage\"\/>\n  <div aria-labelledby=\"nit-article-title\" class=\"nit-pg-hero\">\n    <div>\n      <p class=\"nit-pg-kicker\">\n        Python learning \u00b7 Beginner projects \u00b7 \n      <\/p>\n      <p aria-level=\"1\" class=\"nit-hero__title\" id=\"nit-article-title\" itemprop=\"headline\" role=\"heading\">\n        What Can You Build After 3 Months of Learning Python?\n      <\/p>\n      <p class=\"nit-pg-hero__line\">\n        30 \u2192 60 \u2192 90 days \u00b7 8 practical projects\n      <\/p>\n      <p class=\"nit-pg-hero__summary\" itemprop=\"description\">\n        Three months of steady Python practice can lead to useful programs\u2014not just exercises. Check what you can do, choose from eight beginner projects and follow two runnable examples with real tests.\n      <\/p>\n      <div class=\"nit-pg-hero__actions\">\n        <a class=\"nit-pg-button nit-pg-button--gold\" href=\"#projects\">\n          Explore the 8 projects\n        <\/a>\n        <a class=\"nit-pg-button nit-pg-button--outline\" href=\"#shop-report\">\n          Build the shop report\n        <\/a>\n      <\/div>\n    <\/div>\n    <div aria-label=\"Python beginner projects code illustration\" class=\"nit-pg-hero__art\">\n      <p>\n        What your first projects can look like\n      <\/p>\n      <div aria-label=\"Simple Python project-listing code\" class=\"nit-code-window\" role=\"group\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__file\">\n            hello_projects.py\n          <\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\">ideas = [&#8220;Quiz&#8221;, &#8220;Sales&#8221;]<\/span>\n          <span class=\"nit-code-line\">for idea in ideas:<\/span>\n          <span class=\"nit-code-line nit-code-line--indent\">    print(&#8220;Build&#8221;, idea)<\/span>\n        <\/div>\n      <\/div>\n      <strong>\n        Start small \u00b7 Check inputs \u00b7 Test the result\n      <\/strong>\n    <\/div>\n    <div aria-label=\"Article information\" class=\"nit-pg-hero__meta\">\n      <p>\n        <span>\n          Best for\n        <\/span>\n        Beginners &#038; ICT students\n      <\/p>\n      <p>\n        <span>\n          Learning stage\n        <\/span>\n        About 3 months\n      <\/p>\n      <p>\n        <span>\n          Practice focus\n        <\/span>\n        Python 3 \u00b7 Files \u00b7 Tests\n      <\/p>\n      <p>\n        <span>\n          Prepared\n        <\/span>\n        12 November 2026\n      <\/p>\n    <\/div>\n  <\/div>\n  <div class=\"nit-article__body\">\n    <section aria-labelledby=\"qa-title\" class=\"nit-quick-answer\" id=\"quick-answer\">\n      <div class=\"nit-quick-answer__head\">\n        <span aria-hidden=\"true\" class=\"nit-quick-answer__mark\">\n          3\n        <\/span>\n        <div>\n          <p class=\"nit-quick-answer__label\">\n            Quick answer\n          <\/p>\n          <p class=\"nit-quick-answer__kicker\" id=\"qa-title\">\n            What can you build after three months?\n          <\/p>\n        <\/div>\n      <\/div>\n      <div class=\"nit-quick-answer__body\">\n        <p class=\"nit-quick-answer__text\">\n          After about three months of regular Python practice, you may be able to build a fare calculator, short quiz or expense tracker\u2014and, if you can handle files and errors, a book register, shop-sales report, file organiser, marks analyser or attendance tracker.\n          <strong>\n            Choose a project based on the skills you can demonstrate, not the number of months on a calendar.\n          <\/strong>\n        <\/p>\n        <p>\n          For example, a learner who can use functions and files might read fictional shop sales from a spreadsheet-style CSV file and produce a report:\n          <strong>\n            14 items sold, KSh 850 in sales revenue\n          <\/strong>\n          . This guide shows the finished result, how the program works, what to test and what to build next.\n        <\/p>\n      <\/div>\n    <\/section>\n    <nav aria-labelledby=\"toc-title\" class=\"nit-toc\">\n      <h2 id=\"toc-title\">\n        In this Python project guide\n      <\/h2>\n      <ol>\n        <li>\n          <a href=\"#skills\">\n            What should you be able to do after three months of Python?\n          <\/a>\n        <\/li>\n        <li>\n          <a href=\"#skills-check\">\n            Six Python skills to check before choosing a project\n          <\/a>\n        <\/li>\n        <li>\n          <a href=\"#projects\">\n            Which of these eight beginner Python projects should you build?\n          <\/a>\n        <\/li>\n        <li>\n          <a href=\"#fare-calculator\">\n            Start here: build a small matatu fare calculator\n          <\/a>\n        <\/li>\n        <li>\n          <a href=\"#shop-report\">\n            Step by step: build a fictional shop-sales report in Python\n          <\/a>\n        <\/li>\n        <li>\n          <a href=\"#challenge\">\n            A practical three-session challenge after the worked examples\n          <\/a>\n        <\/li>\n        <li>\n          <a href=\"#testing\">\n            How to test your own beginner Python project\n          <\/a>\n        <\/li>\n        <li>\n          <a href=\"#troubleshooting\">\n            Common problems beginners run into\n          <\/a>\n        <\/li>\n        <li>\n          <a href=\"#independence\">\n            How do you know the project is really yours?\n          <\/a>\n        <\/li>\n        <li>\n          <a href=\"#careers\">\n            Can three months of Python get you a programming job?\n          <\/a>\n        <\/li>\n        <li>\n          <a href=\"#faq\">\n            Frequently asked questions\n          <\/a>\n        <\/li>\n        <li>\n          <a href=\"#register\">\n            Learn practical Python at Newton Institute of Technology\n          <\/a>\n        <\/li>\n      <\/ol>\n    <\/nav>\n    <section aria-labelledby=\"skills-title\" id=\"skills\">\n      <h2 id=\"skills-title\">\n        What should you be able to do after three months of Python?\n      <\/h2>\n      <p>\n        There is no universal three-month finishing line. Consider two fictional learners: Akinyi writes and improves small scripts most weekdays; Brian mainly watches lessons. They may have spent the same number of months learning, but their ability to solve a problem without guidance will differ.\n      <\/p>\n      <p>\n        Judge progress by what you can\n        <strong>\n          write, explain, change and test\n        <\/strong>\n        , not just by the course videos you have completed.\n      <\/p>\n      <div class=\"nit-table-wrap\">\n        <table class=\"nit-table\">\n          <thead>\n            <tr>\n              <th scope=\"col\">\n                Your current ability\n              <\/th>\n              <th scope=\"col\">\n                A suitable project\n              <\/th>\n              <th scope=\"col\">\n                Evidence you are ready\n              <\/th>\n            <\/tr>\n          <\/thead>\n          <tbody>\n            <tr>\n              <td>\n                Variables, arithmetic and\n                <code>\n                  if\n                <\/code>\n                statements\n              <\/td>\n              <td>\n                Fare calculator\n              <\/td>\n              <td>\n                Correct totals and sensible invalid-input handling\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                Loops, lists and dictionaries\n              <\/td>\n              <td>\n                Quiz or simple tracker\n              <\/td>\n              <td>\n                Repeated questions or records without copied code\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                Functions and file handling\n              <\/td>\n              <td>\n                Expense or book register\n              <\/td>\n              <td>\n                Data survives an application restart, if saving is part of Version 1\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                CSV reading, validation and exceptions\n              <\/td>\n              <td>\n                Shop-sales or marks analyser\n              <\/td>\n              <td>\n                Correct totals and useful error messages for faulty rows\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                Still following every tutorial line by line\n              <\/td>\n              <td>\n                Two shorter independent exercises\n              <\/td>\n              <td>\n                You can finish a variation without watching the same steps\n              <\/td>\n            <\/tr>\n          <\/tbody>\n        <\/table>\n      <\/div>\n      <p class=\"nit-table-note\">\n        On a phone, swipe this table sideways to see all columns.\n      <\/p>\n      <h3>\n        A possible first 30, 60 and 90 days\n      <\/h3>\n      <p>\n        This is an\n        <strong>\n          illustrative learning progression, not a promised timetable\n        <\/strong>\n        . Move forward when the previous stage makes sense, even if you need longer.\n      <\/p>\n      <ul class=\"nit-list\">\n        <li>\n          <strong>\n            Around day 30 \u2014 Make a calculation work.\n          <\/strong>\n          Use variables, strings, numbers, conditions and loops. Example: a fare calculator or three-question quiz. Predict the answer before running the script.\n        <\/li>\n        <li>\n          <strong>\n            Around day 60 \u2014 Organise the program.\n          <\/strong>\n          Write functions and use lists or dictionaries. Example: a quiz that keeps score, or a tracker that totals spending categories. Change a rule without rewriting the whole script.\n        <\/li>\n        <li>\n          <strong>\n            Around day 90 \u2014 Use and check a file.\n          <\/strong>\n          Read a small sample CSV or JSON file, handle missing and invalid data, and run repeatable tests. Example: a fictional shop-sales report. Be able to explain a wrong result and correct it.\n        <\/li>\n      <\/ul>\n      <p>\n        A beginner who has only reached the first stage can still build a real project. A learner who has reached the third stage should choose work that involves files and checking data, not merely another print statement.\n      <\/p>\n      <p>\n        NIT currently lists\n        <strong>\n          Python Programming as a four-month part-time course\n        <\/strong>\n        in its ICT catalogue. The three-month question in this article is a general learning checkpoint,\n        <strong>\n          not a statement that NIT&#8217;s course finishes in three months\n        <\/strong>\n        .\n        <a aria-label=\"Reference 1\" href=\"#source-1\">\n          [1]\n        <\/a>\n      <\/p>\n    <\/section>\n    <section aria-labelledby=\"skills-check-title\" class=\"nit-section-panel\" id=\"skills-check\">\n      <h2 id=\"skills-check-title\">\n        Six Python skills to check before choosing a project\n      <\/h2>\n      <p>\n        Try these mini-tasks without copying an entire solution. If one is difficult, practise it before choosing a project that relies on it.\n      <\/p>\n      <ol class=\"nit-list\">\n        <li>\n          <strong>\n            Variables and numbers:\n          <\/strong>\n          Four notebooks cost KSh 50 each. Store\n          <code>\n            quantity = 4\n          <\/code>\n          and\n          <code>\n            price = 50\n          <\/code>\n          ; calculate\n          <strong>\n            KSh 200\n          <\/strong>\n          .\n        <\/li>\n        <li>\n          <strong>\n            Conditions:\n          <\/strong>\n          Reject a negative price such as\n          <code>\n            -50\n          <\/code>\n          . Explain when an\n          <code>\n            if\n          <\/code>\n          block runs.\n        <\/li>\n        <li>\n          <strong>\n            Loops:\n          <\/strong>\n          Print five product names from a list without writing five separate\n          <code>\n            print()\n          <\/code>\n          calls.\n        <\/li>\n        <li>\n          <strong>\n            Lists and dictionaries:\n          <\/strong>\n          Store three expenses and retrieve a total by category.\n        <\/li>\n        <li>\n          <strong>\n            Functions:\n          <\/strong>\n          Write\n          <code>\n            total_fare(passengers, fare_each)\n          <\/code>\n          and explain what the function returns.\n        <\/li>\n        <li>\n          <strong>\n            Files and errors:\n          <\/strong>\n          Read a tiny CSV file; explain the difference between an absent file and a number written as\n          <code>\n            thirty\n          <\/code>\n          .\n        <\/li>\n      <\/ol>\n      <p>\n        A good self-check is to write a function, test it with a normal value, change the input and explain the new result. Python&#8217;s official tutorial explains the underlying language features.\n        <a aria-label=\"Reference 2\" href=\"#source-2\">\n          [2]\n        <\/a>\n      <\/p>\n      <h3>\n        What do you need to get started?\n      <\/h3>\n      <p>\n        Install an appropriate Python 3 version from\n        <a href=\"https:\/\/www.python.org\/downloads\/\" target=\"_blank\" rel=\"noopener\">\n          python.org\/downloads\n        <\/a>\n        or use a supervised lab computer with Python already installed. Make a folder called\n        <code>\n          python-practice\n        <\/code>\n        . Open a terminal in that folder and check whether Python is available:\n      <\/p>\n      <div aria-label=\"BASH code example\" class=\"nit-code-window\" role=\"group\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__file\">\n            example.sh\n          <\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\">python &#8211;version<\/span>\n        <\/div>\n      <\/div>\n      <p>\n        On systems where\n        <code>\n          python\n        <\/code>\n        points to a different interpreter or is unavailable, try\n        <code>\n          python3 --version\n        <\/code>\n        . When you save the fare calculator below as\n        <code>\n          fare_calculator.py\n        <\/code>\n        , run it with\n        <code>\n          python fare_calculator.py\n        <\/code>\n        (or\n        <code>\n          python3 fare_calculator.py\n        <\/code>\n        ). You can complete the projects below locally; the first versions do not require an internet connection. Avoid naming your script\n        <code>\n          csv.py\n        <\/code>\n        or\n        <code>\n          pathlib.py\n        <\/code>\n        , because those names can interfere with imports from Python&#8217;s standard library.\n      <\/p>\n    <\/section>\n    <section aria-labelledby=\"projects-title\" id=\"projects\">\n      <h2 id=\"projects-title\">\n        Which of these eight beginner Python projects should you build?\n      <\/h2>\n      <p>\n        The projects below are\n        <strong>\n          choices, not eight compulsory assignments\n        <\/strong>\n        . The levels describe the skills required for the small version specified here, not the difficulty of every possible future upgrade.\n      <\/p>\n      <div class=\"nit-table-wrap\">\n        <table class=\"nit-table\">\n          <thead>\n            <tr>\n              <th scope=\"col\">\n                Project\n              <\/th>\n              <th scope=\"col\">\n                Level\n              <\/th>\n              <th scope=\"col\">\n                Main Python practice\n              <\/th>\n              <th scope=\"col\">\n                First deliverable\n              <\/th>\n            <\/tr>\n          <\/thead>\n          <tbody>\n            <tr>\n              <td>\n                Matatu fare calculator\n              <\/td>\n              <td>\n                Foundation\n              <\/td>\n              <td>\n                Arithmetic, functions, conditions\n              <\/td>\n              <td>\n                Correct fare for a group\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                School revision quiz\n              <\/td>\n              <td>\n                Foundation\n              <\/td>\n              <td>\n                Lists, loops, conditions\n              <\/td>\n              <td>\n                Five questions and a score\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                Personal expense tracker\n              <\/td>\n              <td>\n                Foundation \u2192 developing\n              <\/td>\n              <td>\n                Dictionaries, totals, optional JSON\n              <\/td>\n              <td>\n                Weekly spending summary\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                Library book tracker\n              <\/td>\n              <td>\n                Developing\n              <\/td>\n              <td>\n                Functions, records, state\n              <\/td>\n              <td>\n                Borrow\/return status\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                Small-shop sales analyser\n              <\/td>\n              <td>\n                Developing\n              <\/td>\n              <td>\n                CSV, validation, totals\n              <\/td>\n              <td>\n                KSh sales report\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                Safe file organiser\n              <\/td>\n              <td>\n                Developing\n              <\/td>\n              <td>\n                <code>\n                  pathlib\n                <\/code>\n                , exceptions\n              <\/td>\n              <td>\n                A no-change sorting preview\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                Student marks analyser\n              <\/td>\n              <td>\n                Developing\n              <\/td>\n              <td>\n                CSV, functions, averages\n              <\/td>\n              <td>\n                Validated class summary\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                Simple attendance tracker\n              <\/td>\n              <td>\n                Stretch\n              <\/td>\n              <td>\n                Add\/edit\/search, persistence\n              <\/td>\n              <td>\n                Fictional attendance register\n              <\/td>\n            <\/tr>\n          <\/tbody>\n        <\/table>\n      <\/div>\n      <p class=\"nit-table-note\">\n        On a phone, swipe this table sideways to see all columns.\n      <\/p>\n      <div class=\"nit-module-grid\">\n        <article class=\"nit-module-card\">\n          <div class=\"nit-module-card__head\">\n            <span class=\"nit-module-card__number\">\n              01\n            <\/span>\n            <h3>\n              Matatu fare calculator \u2014 start with a clear answer\n            <\/h3>\n          <\/div>\n          <p>\n            <strong>\n              The problem:\n            <\/strong>\n            A group wants to calculate the cost of travelling on one fictional route.\n            <strong>\n              Version 1:\n            <\/strong>\n            Store four passengers and a fare of KSh 80 per passenger. Display\n            <strong>\n              KSh 320\n            <\/strong>\n            . You need variables, multiplication and a function.\n          <\/p>\n          <p class=\"nit-module-card__outcome\">\n            <strong>\n              Check it:\n            <\/strong>\n            Four passengers at KSh 80 must equal 320; zero passengers must equal 0; negative fares must be rejected.\n            <strong>\n              Upgrade:\n            <\/strong>\n            Allow different fictional fare categories after the single-fare calculation works.\n          <\/p>\n        <\/article>\n        <article class=\"nit-module-card\">\n          <div class=\"nit-module-card__head\">\n            <span class=\"nit-module-card__number\">\n              02\n            <\/span>\n            <h3>\n              School revision quiz \u2014 practise loops and conditions\n            <\/h3>\n          <\/div>\n          <p>\n            <strong>\n              The problem:\n            <\/strong>\n            A learner wants feedback after answering five practice questions.\n            <strong>\n              Version 1:\n            <\/strong>\n            Store a question and correct answer together, ask five questions, compare each answer and print a score such as\n            <strong>\n              4\/5\n            <\/strong>\n            .\n          <\/p>\n          <p class=\"nit-module-card__outcome\">\n            <strong>\n              Check it:\n            <\/strong>\n            Try five correct answers, five wrong answers, a blank answer and different capitalisation. Decide whether answers should ignore surrounding spaces.\n            <strong>\n              Upgrade:\n            <\/strong>\n            Shuffle the questions and display an explanation for each answer.\n          <\/p>\n        <\/article>\n        <article class=\"nit-module-card\">\n          <div class=\"nit-module-card__head\">\n            <span class=\"nit-module-card__number\">\n              03\n            <\/span>\n            <h3>\n              Personal expense tracker \u2014 organise small amounts\n            <\/h3>\n          <\/div>\n          <p>\n            <strong>\n              The problem:\n            <\/strong>\n            A student wants to see where fictional weekly spending went.\n            <strong>\n              Version 1:\n            <\/strong>\n            Record transport KSh 200, food KSh 350 and stationery KSh 100. Display a total of\n            <strong>\n              KSh 650\n            <\/strong>\n            , plus the category totals.\n          <\/p>\n          <p class=\"nit-module-card__outcome\">\n            <strong>\n              Check it:\n            <\/strong>\n            Reject a negative amount and an empty category; verify that two expenses in the same category are added together.\n            <strong>\n              Upgrade:\n            <\/strong>\n            Save and reload fictional records in JSON. Do not use actual banking credentials or personal financial records in a public exercise.\n          <\/p>\n        <\/article>\n        <article class=\"nit-module-card\">\n          <div class=\"nit-module-card__head\">\n            <span class=\"nit-module-card__number\">\n              04\n            <\/span>\n            <h3>\n              Library book tracker \u2014 manage a changing status\n            <\/h3>\n          <\/div>\n          <p>\n            <strong>\n              The problem:\n            <\/strong>\n            A classroom needs to track a small collection of fictional books.\n            <strong>\n              Version 1:\n            <\/strong>\n            Add a book code, title and availability status; allow a borrow or return action and display the resulting status.\n          <\/p>\n          <p class=\"nit-module-card__outcome\">\n            <strong>\n              Check it:\n            <\/strong>\n            Reject a duplicate book code, a second borrow of an unavailable book and a return of a book that was never borrowed.\n            <strong>\n              Upgrade:\n            <\/strong>\n            Save the register to a local file so it is available after the program closes.\n          <\/p>\n        <\/article>\n        <article class=\"nit-module-card\">\n          <div class=\"nit-module-card__head\">\n            <span class=\"nit-module-card__number\">\n              05\n            <\/span>\n            <h3>\n              Small-shop sales analyser \u2014 calculate from a CSV file\n            <\/h3>\n          <\/div>\n          <p>\n            <strong>\n              The problem:\n            <\/strong>\n            A fictional shop has sales records and needs a daily revenue summary.\n            <strong>\n              Version 1:\n            <\/strong>\n            Read item, quantity and whole-KSh price from a CSV file, group identical item names and calculate total units and revenue. The worked example below produces\n            <strong>\n              14 units and KSh 850\n            <\/strong>\n            .\n          <\/p>\n          <p class=\"nit-module-card__outcome\">\n            <strong>\n              Check it:\n            <\/strong>\n            Try an absent file, missing CSV columns, a wrong number and a negative quantity.\n            <strong>\n              Upgrade:\n            <\/strong>\n            Add dates and a dated summary after the basic result passes its tests.\n          <\/p>\n        <\/article>\n        <article class=\"nit-module-card\">\n          <div class=\"nit-module-card__head\">\n            <span class=\"nit-module-card__number\">\n              06\n            <\/span>\n            <h3>\n              Safe file organiser \u2014 practise automation without losing files\n            <\/h3>\n          <\/div>\n          <p>\n            <strong>\n              The problem:\n            <\/strong>\n            A practice folder contains mixed copies of documents and photos.\n            <strong>\n              Version 1:\n            <\/strong>\n            List a proposed destination folder for each file extension, such as\n            <code>\n              notes.txt \u2192 Text\n            <\/code>\n            ,\n            <strong>\n              without moving, renaming or deleting any files\n            <\/strong>\n            .\n          <\/p>\n          <p class=\"nit-module-card__outcome\">\n            <strong>\n              Check it:\n            <\/strong>\n            Include two files with the same name, an unknown extension and an empty folder.\n            <strong>\n              Upgrade:\n            <\/strong>\n            Allow changes only within a disposable practice folder, after confirming a plan and a way to undo mistakes. Python&#8217;s\n            <code>\n              pathlib\n            <\/code>\n            module helps work with file paths.\n            <a aria-label=\"Reference 3\" href=\"#source-3\">\n              [3]\n            <\/a>\n          <\/p>\n        <\/article>\n        <article class=\"nit-module-card\">\n          <div class=\"nit-module-card__head\">\n            <span class=\"nit-module-card__number\">\n              07\n            <\/span>\n            <h3>\n              Student marks analyser \u2014 check data before averaging\n            <\/h3>\n          <\/div>\n          <p>\n            <strong>\n              The problem:\n            <\/strong>\n            A teacher wants to understand a\n            <strong>\n              fictional\n            <\/strong>\n            class-mark dataset.\n            <strong>\n              Version 1:\n            <\/strong>\n            Given marks of\n            <code>\n              60\n            <\/code>\n            ,\n            <code>\n              70\n            <\/code>\n            and\n            <code>\n              80\n            <\/code>\n            , calculate an average of\n            <strong>\n              70\n            <\/strong>\n            . Read several records and display a summary.\n          <\/p>\n          <p class=\"nit-module-card__outcome\">\n            <strong>\n              Check it:\n            <\/strong>\n            Decide what to do with a blank mark, a value below 0 or above 100, and an empty dataset; do not silently treat missing marks as zero.\n            <strong>\n              Upgrade:\n            <\/strong>\n            Summarise marks by subject using invented student IDs.\n          <\/p>\n        <\/article>\n        <article class=\"nit-module-card\">\n          <div class=\"nit-module-card__head\">\n            <span class=\"nit-module-card__number\">\n              08\n            <\/span>\n            <h3>\n              Simple attendance tracker \u2014 a stretch task\n            <\/h3>\n          <\/div>\n          <p>\n            <strong>\n              The problem:\n            <\/strong>\n            A class needs an offline practice register.\n            <strong>\n              Version 1:\n            <\/strong>\n            Add fictional learner IDs, mark a date as present or absent and retrieve the record. Use a JSON file or an introductory SQLite database if you already understand file storage.\n          <\/p>\n          <p class=\"nit-module-card__outcome\">\n            <strong>\n              Check it:\n            <\/strong>\n            Avoid duplicate learner\/date entries, reject impossible date formats and confirm that saved changes reload correctly.\n            <strong>\n              Upgrade:\n            <\/strong>\n            Export a summary CSV. This is a stretch project because storing and updating records reliably involves more decisions than a simple calculator.\n          <\/p>\n          <p>\n            <strong>\n              Choosing one:\n            <\/strong>\n            If you cannot yet explain a function and a condition, start with the fare calculator. If you are comfortable with loops and dictionaries, try the quiz or expense tracker. If files and input validation are familiar, choose the sales analyser. When in doubt, complete a smaller version before adding features.\n          <\/p>\n        <\/article>\n      <\/div>\n    <\/section>\n    <section aria-labelledby=\"fare-calculator-title\" id=\"fare-calculator\">\n      <h2 id=\"fare-calculator-title\">\n        Start here: build a small matatu fare calculator\n      <\/h2>\n      <p>\n        Before you tackle file processing, build a program that solves one problem completely. The example below uses fixed numbers on purpose. It takes\n        <code>\n          passengers\n        <\/code>\n        and\n        <code>\n          fare_each\n        <\/code>\n        from the programmer, not a keyboard prompt. Because we are counting people and using whole-shilling fares, this version checks that both values are integers. Save the following as\n        <strong>\n          <code>\n            fare_calculator.py\n          <\/code>\n        <\/strong>\n        . Adding interactive input is an optional next step.\n      <\/p>\n      <div aria-label=\"PYTHON code example\" class=\"nit-code-window\" role=\"group\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__file\">\n            example.py\n          <\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\">def total_fare(passengers, fare_each):<\/span>\n          <span class=\"nit-code-line nit-code-line--indent\">    if type(passengers) is not int or type(fare_each) is not int:<\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\">        raise TypeError(&#8220;Passengers and fare must be whole numbers&#8221;)<\/span>\n          <span class=\"nit-code-line nit-code-line--indent\">    if passengers &lt; 0 or fare_each &lt; 0:<\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\">        raise ValueError(&#8220;Passengers and fare cannot be negative&#8221;)<\/span>\n          <span class=\"nit-code-line nit-code-line--indent\">    return passengers * fare_each<\/span>\n          <span class=\"nit-code-line\" aria-hidden=\"true\">&nbsp;<\/span>\n          <span class=\"nit-code-line\">print(total_fare(4, 80))<\/span>\n          <span class=\"nit-code-line\">print(total_fare(0, 80))<\/span>\n        <\/div>\n      <\/div>\n      <p>\n        Run\n        <code>\n          python fare_calculator.py\n        <\/code>\n        .\n        <strong>\n          Expected output:\n        <\/strong>\n      <\/p>\n      <div aria-label=\"TEXT code example\" class=\"nit-code-window\" role=\"group\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__file\">\n            example.txt\n          <\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\">320<\/span>\n          <span class=\"nit-code-line\">0<\/span>\n        <\/div>\n      <\/div>\n      <p>\n        Read it from top to bottom.\n        <code>\n          def\n        <\/code>\n        creates a function; the first\n        <code>\n          if\n        <\/code>\n        rejects non-integers (for example,\n        <code>\n          2.5\n        <\/code>\n        passengers); the second rejects negative values.\n        <code>\n          raise\n        <\/code>\n        reports invalid input, and\n        <code>\n          return\n        <\/code>\n        sends the total back to the caller. Try\n        <code>\n          total_fare(4, -80)\n        <\/code>\n        and\n        <code>\n          total_fare(2.5, 80)\n        <\/code>\n        to see the two different errors. Then change the passenger count to six and predict the answer before running it:\n        <strong>\n          KSh 480\n        <\/strong>\n        .\n      <\/p>\n      <p>\n        <strong>\n          Independent challenge:\n        <\/strong>\n        Write a notebook-price calculator from a blank file using the same ideas. If you can change the problem without copying every line, you are learning to build rather than simply to repeat.\n      <\/p>\n    <\/section>\n    <section aria-labelledby=\"shop-report-title\" class=\"nit-section-panel\" id=\"shop-report\">\n      <h2 id=\"shop-report-title\">\n        Step by step: build a fictional shop-sales report in Python\n      <\/h2>\n      <p>\n        Now try a project that uses data from a file. A\n        <strong>\n          CSV\n        <\/strong>\n        (comma-separated values) file is a simple table stored as text. You can edit one in a text editor or many spreadsheet programs. Python&#8217;s standard-library\n        <code>\n          csv.DictReader\n        <\/code>\n        reads rows using the column names as keys.\n        <a aria-label=\"Reference 4\" href=\"#source-4\">\n          [4]\n        <\/a>\n      <\/p>\n      <p>\n        <strong>\n          The goal:\n        <\/strong>\n        Read four fictional sales rows, calculate revenue for each product, count all units and print the total revenue in Kenyan shillings. This is a teaching example, not a real shop&#8217;s accounts.\n      <\/p>\n      <h3>\n        Step 1 \u2014 Create the project files\n      <\/h3>\n      <p>\n        Make a folder named\n        <code>\n          shop-sales\n        <\/code>\n        containing three files:\n        <code>\n          sales.csv\n        <\/code>\n        ,\n        <code>\n          sales_report.py\n        <\/code>\n        and (for automated checks)\n        <code>\n          test_sales_report.py\n        <\/code>\n        . Keep\n        <code>\n          sales.csv\n        <\/code>\n        next to\n        <code>\n          sales_report.py\n        <\/code>\n        . The finished program looks for the CSV beside the script, so running it from another terminal folder will still work.\n      <\/p>\n      <h3>\n        Step 2 \u2014 Enter the sample data in\n        <code>\n          sales.csv\n        <\/code>\n      <\/h3>\n      <p>\n        On a phone, swipe inside long code windows to read the full lines. When copying Python, preserve each line break and indentation.\n      <\/p>\n      <div aria-label=\"CSV code example\" class=\"nit-code-window\" role=\"group\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__file\">\n            example.csv\n          <\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\">item,quantity,unit_price_ksh<\/span>\n          <span class=\"nit-code-line\">Notebook,3,120<\/span>\n          <span class=\"nit-code-line\">Pen,5,30<\/span>\n          <span class=\"nit-code-line\">Notebook,2,120<\/span>\n          <span class=\"nit-code-line\">Eraser,4,25<\/span>\n        <\/div>\n      <\/div>\n      <p>\n        The first row contains\n        <strong>\n          column headings\n        <\/strong>\n        . Every following row records a fictional item, the number sold and its price per unit in whole KSh. The first and third data rows are both notebooks, so their revenue will be added together.\n      <\/p>\n      <p>\n        Before writing Python, calculate a few results by hand:\n      <\/p>\n      <div class=\"nit-table-wrap\">\n        <table class=\"nit-table\">\n          <thead>\n            <tr>\n              <th scope=\"col\">\n                Item\n              <\/th>\n              <th scope=\"col\">\n                Calculation\n              <\/th>\n              <th scope=\"col\">\n                Revenue\n              <\/th>\n            <\/tr>\n          <\/thead>\n          <tbody>\n            <tr>\n              <td>\n                Notebook\n              <\/td>\n              <td>\n                <code>\n                  (3 \u00d7 120) + (2 \u00d7 120)\n                <\/code>\n              <\/td>\n              <td>\n                KSh 600\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                Pen\n              <\/td>\n              <td>\n                <code>\n                  5 \u00d7 30\n                <\/code>\n              <\/td>\n              <td>\n                KSh 150\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                Eraser\n              <\/td>\n              <td>\n                <code>\n                  4 \u00d7 25\n                <\/code>\n              <\/td>\n              <td>\n                KSh 100\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                <strong>\n                  All items\n                <\/strong>\n              <\/td>\n              <td>\n                <strong>\n                  14 units in total\n                <\/strong>\n              <\/td>\n              <td>\n                <strong>\n                  KSh 850\n                <\/strong>\n              <\/td>\n            <\/tr>\n          <\/tbody>\n        <\/table>\n      <\/div>\n      <p class=\"nit-table-note\">\n        On a phone, swipe this table sideways to see all columns.\n      <\/p>\n      <p>\n        This is\n        <strong>\n          sales revenue\n        <\/strong>\n        , not profit. The program does not subtract costs, calculate tax, track stock, handle refunds or connect to payment services. The prices use whole shillings to keep the first exercise understandable; real financial systems need requirements and controls appropriate to their use.\n      <\/p>\n      <h3>\n        Step 3 \u2014 Understand the four pieces of the program\n      <\/h3>\n      <ul class=\"nit-list\">\n        <li>\n          <strong>\n            Read:\n          <\/strong>\n          <code>\n            csv.DictReader\n          <\/code>\n          converts each CSV row into a dictionary keyed by column headings.\n        <\/li>\n        <li>\n          <strong>\n            Validate:\n          <\/strong>\n          Check that required headings exist, values are whole numbers, quantities are positive and prices are not negative. The example permits a price of zero for a fictional free sample.\n        <\/li>\n        <li>\n          <strong>\n            Accumulate:\n          <\/strong>\n          Multiply quantity by price, add that amount to the product&#8217;s total and add the quantity to total units.\n          <code>\n            defaultdict(int)\n          <\/code>\n          is a dictionary that automatically starts a previously unseen product total at zero.\n        <\/li>\n        <li>\n          <strong>\n            Report:\n          <\/strong>\n          Print the products alphabetically and display the final units and revenue.\n          <code>\n            Path\n          <\/code>\n          opens the file using Python&#8217;s path-handling facilities.\n          <a aria-label=\"Reference 3\" href=\"#source-3\">\n            [3]\n          <\/a>\n          <a aria-label=\"Reference 4\" href=\"#source-4\">\n            [4]\n          <\/a>\n        <\/li>\n      <\/ul>\n      <h3>\n        First look: read the rows before calculating anything\n      <\/h3>\n      <p>\n        Before studying the full program, save the next snippet as\n        <code>\n          look_at_sales.py\n        <\/code>\n        in the\n        <strong>\n          same folder as\n          <code>\n            sales.csv\n          <\/code>\n        <\/strong>\n        . Run\n        <code>\n          python look_at_sales.py\n        <\/code>\n        from that folder.\n      <\/p>\n      <div aria-label=\"PYTHON code example\" class=\"nit-code-window\" role=\"group\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__file\">\n            example.py\n          <\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\">import csv<\/span>\n          <span class=\"nit-code-line\" aria-hidden=\"true\">&nbsp;<\/span>\n          <span class=\"nit-code-line\">with open(&#8220;sales.csv&#8221;, encoding=&#8221;utf-8-sig&#8221;, newline=&#8221;&#8221;) as file:<\/span>\n          <span class=\"nit-code-line nit-code-line--indent\">    for row in csv.DictReader(file):<\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\">        print(row[&#8220;item&#8221;], row[&#8220;quantity&#8221;])<\/span>\n        <\/div>\n      <\/div>\n      <p>\n        You should see\n        <code>\n          Notebook 3\n        <\/code>\n        ,\n        <code>\n          Pen 5\n        <\/code>\n        ,\n        <code>\n          Notebook 2\n        <\/code>\n        and\n        <code>\n          Eraser 4\n        <\/code>\n        , each on its own line. The CSV reader gives you\n        <strong>\n          text\n        <\/strong>\n        , even for numbers: the first\n        <code>\n          row[\"quantity\"]\n        <\/code>\n        is the string\n        <code>\n          \"3\"\n        <\/code>\n        , not the integer\n        <code>\n          3\n        <\/code>\n        . That is why the finished report explicitly converts quantities and prices with\n        <code>\n          int()\n        <\/code>\n        and rejects invalid text such as\n        <code>\n          thirty\n        <\/code>\n        .\n        <a aria-label=\"Reference 4\" href=\"#source-4\">\n          [4]\n        <\/a>\n      <\/p>\n      <p>\n        To check one sales row without any code, use\n        <strong>\n          quantity \u00d7 price\n        <\/strong>\n        :\n        <code>\n          3 \u00d7 120 = KSh 360\n        <\/code>\n        . The full program repeats that operation for every row and adds together rows for the same item.\n      <\/p>\n      <h3>\n        Step 4 \u2014 Save this complete program as\n        <code>\n          sales_report.py\n        <\/code>\n      <\/h3>\n      <p>\n        The following program adds input checks to that simple row-reading idea. It refuses missing or unexpected named columns, invalid quantities and prices, and malformed CSV quoting rather than silently giving a misleading result.\n        <strong>\n          Copy the entire code block\n        <\/strong>\n        , preserving its indentation. This is the developing-level example; beginners still learning loops can finish the fare calculator first.\n      <\/p>\n      <div aria-label=\"PYTHON code example\" class=\"nit-code-window\" role=\"group\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__file\">\n            example.py\n          <\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\">&#8220;&#8221;&#8221;Teaching example: revenue from a fictional shop CSV (whole KSh only).&#8221;&#8221;&#8221;<\/span>\n          <span class=\"nit-code-line\" aria-hidden=\"true\">&nbsp;<\/span>\n          <span class=\"nit-code-line\">import csv<\/span>\n          <span class=\"nit-code-line\">from collections import defaultdict<\/span>\n          <span class=\"nit-code-line\">from pathlib import Path<\/span>\n          <span class=\"nit-code-line\" aria-hidden=\"true\">&nbsp;<\/span>\n          <span class=\"nit-code-line\">REQUIRED_COLUMNS = {&#8220;item&#8221;, &#8220;quantity&#8221;, &#8220;unit_price_ksh&#8221;}<\/span>\n          <span class=\"nit-code-line\" aria-hidden=\"true\">&nbsp;<\/span>\n          <span class=\"nit-code-line\" aria-hidden=\"true\">&nbsp;<\/span>\n          <span class=\"nit-code-line\">def calculate_sales(csv_path):<\/span>\n          <span class=\"nit-code-line nit-code-line--indent\">    &#8220;&#8221;&#8221;Return (revenue_by_item, total_units, total_revenue).&#8221;&#8221;&#8221;<\/span>\n          <span class=\"nit-code-line nit-code-line--indent\">    revenue_by_item = defaultdict(int)<\/span>\n          <span class=\"nit-code-line nit-code-line--indent\">    total_units = 0<\/span>\n          <span class=\"nit-code-line nit-code-line--indent\">    total_revenue = 0<\/span>\n          <span class=\"nit-code-line\" aria-hidden=\"true\">&nbsp;<\/span>\n          <span class=\"nit-code-line nit-code-line--indent\">    with Path(csv_path).open(encoding=&#8221;utf-8-sig&#8221;, newline=&#8221;&#8221;) as file:<\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\">        reader = csv.DictReader(file, strict=True)<\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\">        headers = reader.fieldnames<\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\">        if (<\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\"><span class=\"nit-code-line--indent\">            headers is None<\/span><\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\"><span class=\"nit-code-line--indent\">            or len(headers) != len(REQUIRED_COLUMNS)<\/span><\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\"><span class=\"nit-code-line--indent\">            or set(headers) != REQUIRED_COLUMNS<\/span><\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\">        ):<\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\"><span class=\"nit-code-line--indent\">            raise ValueError(&#8220;CSV needs exactly three unique headings: item, quantity, unit_price_ksh&#8221;)<\/span><\/span>\n          <span class=\"nit-code-line\" aria-hidden=\"true\">&nbsp;<\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\">        for row in reader:<\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\"><span class=\"nit-code-line--indent\">            line_number = reader.line_num<\/span><\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\"><span class=\"nit-code-line--indent\">            if None in row:<\/span><\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\"><span class=\"nit-code-line--indent\"><span class=\"nit-code-line--indent\">                raise ValueError(f&#8221;Row {line_number}: unexpected extra values&#8221;)<\/span><\/span><\/span>\n          <span class=\"nit-code-line\" aria-hidden=\"true\">&nbsp;<\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\"><span class=\"nit-code-line--indent\">            item = (row[&#8220;item&#8221;] or &#8220;&#8221;).strip()<\/span><\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\"><span class=\"nit-code-line--indent\">            try:<\/span><\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\"><span class=\"nit-code-line--indent\"><span class=\"nit-code-line--indent\">                quantity = int(row[&#8220;quantity&#8221;])<\/span><\/span><\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\"><span class=\"nit-code-line--indent\"><span class=\"nit-code-line--indent\">                unit_price = int(row[&#8220;unit_price_ksh&#8221;])<\/span><\/span><\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\"><span class=\"nit-code-line--indent\">            except (ValueError, TypeError):<\/span><\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\"><span class=\"nit-code-line--indent\"><span class=\"nit-code-line--indent\">                raise ValueError(<\/span><\/span><\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\"><span class=\"nit-code-line--indent\"><span class=\"nit-code-line--indent\"><span class=\"nit-code-line--indent\">                    f&#8221;Row {line_number}: quantity and price must be whole numbers&#8221;<\/span><\/span><\/span><\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\"><span class=\"nit-code-line--indent\"><span class=\"nit-code-line--indent\">                ) from None<\/span><\/span><\/span>\n          <span class=\"nit-code-line\" aria-hidden=\"true\">&nbsp;<\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\"><span class=\"nit-code-line--indent\">            if not item or quantity &lt;= 0 or unit_price &lt; 0:<\/span><\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\"><span class=\"nit-code-line--indent\"><span class=\"nit-code-line--indent\">                raise ValueError(<\/span><\/span><\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\"><span class=\"nit-code-line--indent\"><span class=\"nit-code-line--indent\"><span class=\"nit-code-line--indent\">                    f&#8221;Row {line_number}: invalid item, quantity or price&#8221;<\/span><\/span><\/span><\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\"><span class=\"nit-code-line--indent\"><span class=\"nit-code-line--indent\">                )<\/span><\/span><\/span>\n          <span class=\"nit-code-line\" aria-hidden=\"true\">&nbsp;<\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\"><span class=\"nit-code-line--indent\">            amount = quantity * unit_price<\/span><\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\"><span class=\"nit-code-line--indent\">            revenue_by_item[item] += amount<\/span><\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\"><span class=\"nit-code-line--indent\">            total_units += quantity<\/span><\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\"><span class=\"nit-code-line--indent\">            total_revenue += amount<\/span><\/span>\n          <span class=\"nit-code-line\" aria-hidden=\"true\">&nbsp;<\/span>\n          <span class=\"nit-code-line nit-code-line--indent\">    return dict(revenue_by_item), total_units, total_revenue<\/span>\n          <span class=\"nit-code-line\" aria-hidden=\"true\">&nbsp;<\/span>\n          <span class=\"nit-code-line\" aria-hidden=\"true\">&nbsp;<\/span>\n          <span class=\"nit-code-line\">def main():<\/span>\n          <span class=\"nit-code-line nit-code-line--indent\">    try:<\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\">        revenue_by_item, units, total = calculate_sales(<\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\"><span class=\"nit-code-line--indent\">            Path(__file__).with_name(&#8220;sales.csv&#8221;)<\/span><\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\">        )<\/span>\n          <span class=\"nit-code-line nit-code-line--indent\">    except (OSError, UnicodeError, csv.Error, ValueError) as error:<\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\">        print(f&#8221;Cannot make report: {error}&#8221;)<\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\">        return 1<\/span>\n          <span class=\"nit-code-line\" aria-hidden=\"true\">&nbsp;<\/span>\n          <span class=\"nit-code-line nit-code-line--indent\">    print(&#8220;FICTIONAL SHOP SALES REPORT&#8221;)<\/span>\n          <span class=\"nit-code-line nit-code-line--indent\">    for item, revenue in sorted(revenue_by_item.items()):<\/span>\n          <span class=\"nit-code-line nit-code-line--indent2\">        print(f&#8221;{item}: KSh {revenue:,}&#8221;)<\/span>\n          <span class=\"nit-code-line nit-code-line--indent\">    print(f&#8221;Total units: {units}&#8221;)<\/span>\n          <span class=\"nit-code-line nit-code-line--indent\">    print(f&#8221;Total revenue: KSh {total:,}&#8221;)<\/span>\n          <span class=\"nit-code-line nit-code-line--indent\">    return 0<\/span>\n          <span class=\"nit-code-line\" aria-hidden=\"true\">&nbsp;<\/span>\n          <span class=\"nit-code-line\" aria-hidden=\"true\">&nbsp;<\/span>\n          <span class=\"nit-code-line\">if __name__ == &#8220;__main__&#8221;:<\/span>\n          <span class=\"nit-code-line nit-code-line--indent\">    raise SystemExit(main())<\/span>\n        <\/div>\n      <\/div>\n      <h3>\n        Step 5 \u2014 Run the program\n      <\/h3>\n      <p>\n        Open a terminal in the project folder, then run:\n      <\/p>\n      <div aria-label=\"BASH code example\" class=\"nit-code-window\" role=\"group\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__file\">\n            example.sh\n          <\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\">python sales_report.py<\/span>\n        <\/div>\n      <\/div>\n      <p>\n        Some systems use\n        <code>\n          python3 sales_report.py\n        <\/code>\n        instead.\n      <\/p>\n      <p>\n        <strong>\n          Expected output:\n        <\/strong>\n      <\/p>\n      <div aria-label=\"TEXT code example\" class=\"nit-code-window\" role=\"group\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__file\">\n            example.txt\n          <\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\">FICTIONAL SHOP SALES REPORT<\/span>\n          <span class=\"nit-code-line\">Eraser: KSh 100<\/span>\n          <span class=\"nit-code-line\">Notebook: KSh 600<\/span>\n          <span class=\"nit-code-line\">Pen: KSh 150<\/span>\n          <span class=\"nit-code-line\">Total units: 14<\/span>\n          <span class=\"nit-code-line\">Total revenue: KSh 850<\/span>\n        <\/div>\n      <\/div>\n      <p>\n        Compare the printed total with your handwritten calculations. Do not continue until they agree.\n      <\/p>\n      <h3>\n        Step 6 \u2014 Deliberately test a mistake\n      <\/h3>\n      <p>\n        Change the price of a pen from\n        <code>\n          30\n        <\/code>\n        to\n        <code>\n          thirty\n        <\/code>\n        in a\n        <em>\n          copy\n        <\/em>\n        of the CSV file. Run the program again. It should tell you that the row needs whole-number values instead of quietly calculating a wrong total.\n      <\/p>\n      <p>\n        Restore the file. Then try a negative quantity, a missing price column or a filename that does not exist. Read the error message and identify which check caught the problem.\n      <\/p>\n      <h3>\n        A data-cleaning detail: names must be consistent\n      <\/h3>\n      <p>\n        This first version removes spaces at the start and end of product names, so\n        <code>\n          Notebook\n        <\/code>\n        and\n        <code>\n          Notebook\n        <\/code>\n        group together. However, Python dictionary keys are case-sensitive:\n        <code>\n          Notebook\n        <\/code>\n        and\n        <code>\n          notebook\n        <\/code>\n        would be shown as\n        <strong>\n          different items\n        <\/strong>\n        . Keep item names consistently capitalised in this exercise. Normalising case before grouping is a useful later upgrade, but decide how product labels should be displayed before changing the logic. A real shop report would also need clearer product identifiers than names alone.\n      <\/p>\n      <h3>\n        Step 7 \u2014 Test automatically, then make one improvement\n      <\/h3>\n      <p>\n        With\n        <code>\n          test_sales_report.py\n        <\/code>\n        in the companion project folder, run:\n      <\/p>\n      <div aria-label=\"BASH code example\" class=\"nit-code-window\" role=\"group\">\n        <div class=\"nit-code-window__bar\">\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__dot\">\n          <\/span>\n          <span class=\"nit-code-window__file\">\n            example.sh\n          <\/span>\n        <\/div>\n        <div class=\"nit-code-window__body\">\n          <span class=\"nit-code-line\">python -m unittest -v test_sales_report.py<\/span>\n        <\/div>\n      <\/div>\n      <p>\n        The companion files contain\n        <strong>\n          24 repeatable tests\n        <\/strong>\n        covering correct totals, missing, duplicate and unexpected headings, invalid and incomplete rows, misplaced commas, malformed quotations, negative or zero quantities, invalid prices, blank items, zero-priced samples, missing files, case-sensitive item names, CSV files with a UTF-8 marker, physical CSV line numbers and command-line success or failure. Python&#8217;s\n        <code>\n          unittest\n        <\/code>\n        framework is included in the standard library.\n        <a aria-label=\"Reference 5\" href=\"#source-5\">\n          [5]\n        <\/a>\n      <\/p>\n      <p>\n        <strong>\n          Your upgrade:\n        <\/strong>\n        Add an optional message naming the highest-revenue product. For the sample, it is\n        <strong>\n          Notebook (KSh 600)\n        <\/strong>\n        . Decide what should happen if there are no sales or two products tie, and add tests for those cases. Do not confuse\n        <em>\n          highest revenue\n        <\/em>\n        with\n        <em>\n          highest units sold\n        <\/em>\n        .\n      <\/p>\n    <\/section>\n    <section aria-labelledby=\"challenge-title\" id=\"challenge\">\n      <h2 id=\"challenge-title\">\n        A practical three-session challenge after the worked examples\n      <\/h2>\n      <p>\n        You do not have to complete all eight project ideas. Use three focused practice sessions to make one small program independently:\n      <\/p>\n      <div class=\"nit-module-grid\">\n        <article class=\"nit-module-card\">\n          <div class=\"nit-module-card__head\">\n            <span class=\"nit-module-card__number\">\n              01\n            <\/span>\n            <h3>\n              Session 1 \u2014 Define and sketch.\n            <\/h3>\n          <\/div>\n          <p>\n            Choose an everyday problem, write two sample inputs and predict the expected answers. Do not open a tutorial until you have written your first attempt.\n          <\/p>\n        <\/article>\n        <article class=\"nit-module-card\">\n          <div class=\"nit-module-card__head\">\n            <span class=\"nit-module-card__number\">\n              02\n            <\/span>\n            <h3>\n              Session 2 \u2014 Build and break.\n            <\/h3>\n          <\/div>\n          <p>\n            Implement the smallest useful solution. Test an ordinary input, an edge case and a deliberately invalid input. Note what each result taught you.\n          <\/p>\n        <\/article>\n        <article class=\"nit-module-card\">\n          <div class=\"nit-module-card__head\">\n            <span class=\"nit-module-card__number\">\n              03\n            <\/span>\n            <h3>\n              Session 3 \u2014 Change and explain.\n            <\/h3>\n          <\/div>\n          <p>\n            Add one small feature, rerun all previous tests and write four README lines: problem, how to run, expected output and one known limitation.\n          <\/p>\n        <\/article>\n      <\/div>\n      <p>\n        For a quiz, for instance, your change might be to accept answers with different capitalisation. For the shop report, it might be to display the highest-revenue product. Your success criterion is not the number of lines written: it is\n        <strong>\n          a result you can reproduce and explain without the tutorial open\n        <\/strong>\n        .\n      <\/p>\n    <\/section>\n    <section aria-labelledby=\"testing-title\" id=\"testing\">\n      <h2 id=\"testing-title\">\n        How to test your own beginner Python project\n      <\/h2>\n      <p>\n        A program printing one correct result is promising; it is not the same as having checked its behaviour. Before you call a project finished, write down expected outputs for three categories of tests:\n      <\/p>\n      <div class=\"nit-table-wrap\">\n        <table class=\"nit-table\">\n          <thead>\n            <tr>\n              <th scope=\"col\">\n                Type of test\n              <\/th>\n              <th scope=\"col\">\n                Shop-sales example\n              <\/th>\n              <th scope=\"col\">\n                Expected behaviour\n              <\/th>\n            <\/tr>\n          <\/thead>\n          <tbody>\n            <tr>\n              <td>\n                Normal case\n              <\/td>\n              <td>\n                Four sample sales rows\n              <\/td>\n              <td>\n                14 units; KSh 850\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                Boundary\n              <\/td>\n              <td>\n                Header-only CSV\n              <\/td>\n              <td>\n                Zero units and zero revenue\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                Invalid input\n              <\/td>\n              <td>\n                <code>\n                  Pen,-2,30\n                <\/code>\n              <\/td>\n              <td>\n                Clear error, no fabricated total\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                Invalid input\n              <\/td>\n              <td>\n                <code>\n                  Pen,2,thirty\n                <\/code>\n              <\/td>\n              <td>\n                Reject non-numeric price\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                File error\n              <\/td>\n              <td>\n                <code>\n                  sales.csv\n                <\/code>\n                absent\n              <\/td>\n              <td>\n                Helpful missing-file message\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                Structural error\n              <\/td>\n              <td>\n                Duplicate header, unexpected fourth heading or extra unheaded field\n              <\/td>\n              <td>\n                Reject ambiguous input\n              <\/td>\n            <\/tr>\n          <\/tbody>\n        <\/table>\n      <\/div>\n      <p class=\"nit-table-note\">\n        On a phone, swipe this table sideways to see all columns.\n      <\/p>\n      <p>\n        For each failure, write down\n        <strong>\n          what you expected, what happened and what you changed\n        <\/strong>\n        . Run the tests again after every correction. Avoid suppressing every exception with\n        <code>\n          except: pass\n        <\/code>\n        ; it hides mistakes rather than fixing them.\n      <\/p>\n    <\/section>\n    <section aria-labelledby=\"troubleshooting-title\" class=\"nit-section-panel\" id=\"troubleshooting\">\n      <h2 id=\"troubleshooting-title\">\n        Common problems beginners run into\n      <\/h2>\n      <div class=\"nit-table-wrap\">\n        <table class=\"nit-table\">\n          <thead>\n            <tr>\n              <th scope=\"col\">\n                Problem\n              <\/th>\n              <th scope=\"col\">\n                First thing to check\n              <\/th>\n            <\/tr>\n          <\/thead>\n          <tbody>\n            <tr>\n              <td>\n                <code>\n                  python\n                <\/code>\n                command not found\n              <\/td>\n              <td>\n                Check Python installation; try\n                <code>\n                  python3 --version\n                <\/code>\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                <code>\n                  FileNotFoundError\n                <\/code>\n              <\/td>\n              <td>\n                Is\n                <code>\n                  sales.csv\n                <\/code>\n                saved alongside\n                <code>\n                  sales_report.py\n                <\/code>\n                , with that exact filename?\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                <code>\n                  IndentationError\n                <\/code>\n              <\/td>\n              <td>\n                Are blocks under\n                <code>\n                  def\n                <\/code>\n                ,\n                <code>\n                  if\n                <\/code>\n                ,\n                <code>\n                  for\n                <\/code>\n                and\n                <code>\n                  with\n                <\/code>\n                indented consistently?\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                <code>\n                  ModuleNotFoundError\n                <\/code>\n              <\/td>\n              <td>\n                Is the correct interpreter running? Did you name a file\n                <code>\n                  csv.py\n                <\/code>\n                ?\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                <code>\n                  ValueError\n                <\/code>\n                for\n                <code>\n                  thirty\n                <\/code>\n              <\/td>\n              <td>\n                Is a number written as text where an integer is required?\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                Wrong sales total\n              <\/td>\n              <td>\n                Recalculate one CSV row by hand; check quantities and repeated item names\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                CSV columns rejected\n              <\/td>\n              <td>\n                Does the file contain exactly these three unique headings:\n                <code>\n                  item\n                <\/code>\n                ,\n                <code>\n                  quantity\n                <\/code>\n                ,\n                <code>\n                  unit_price_ksh\n                <\/code>\n                (in any order)?\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                Test passes before an edit but fails afterward\n              <\/td>\n              <td>\n                Read the first failing assertion and compare the changed behaviour\n              <\/td>\n            <\/tr>\n          <\/tbody>\n        <\/table>\n      <\/div>\n      <p class=\"nit-table-note\">\n        On a phone, swipe this table sideways to see all columns.\n      <\/p>\n      <p>\n        If you cannot explain the error, copy the\n        <strong>\n          error text\n        <\/strong>\n        into your study notes and locate the affected line. Change one thing at a time, then rerun the same input.\n      <\/p>\n    <\/section>\n    <section aria-labelledby=\"independence-title\" id=\"independence\">\n      <h2 id=\"independence-title\">\n        How do you know the project is really yours?\n      <\/h2>\n      <p>\n        Using an example or tutorial is a legitimate way to learn. To measure independence, try this practical challenge without looking at the full solution:\n      <\/p>\n      <ol class=\"nit-list\">\n        <li>\n          Explain the problem and expected answer in plain language.\n        <\/li>\n        <li>\n          Identify where the program reads input, processes it and produces output.\n        <\/li>\n        <li>\n          Modify one rule, such as rejecting a negative price.\n        <\/li>\n        <li>\n          Introduce one invalid input and explain the resulting error.\n        <\/li>\n        <li>\n          Build a related tiny program, such as a stationery order total, from a new blank file.\n        <\/li>\n      <\/ol>\n      <p>\n        <strong>\n          Self-check:\n        <\/strong>\n        For each item, give yourself 0 if you cannot do it yet, 1 if you need hints and 2 if you can do it independently. A score of\n        <strong>\n          8\u201310\n        <\/strong>\n        suggests you understand this particular beginner project well; lower scores reveal useful practice areas. This is a suggested learning exercise,\n        <strong>\n          not a standardised test or professional qualification\n        <\/strong>\n        .\n      <\/p>\n      <p>\n        Once you can explain and test a project, prepare a brief\n        <code>\n          README.md\n        <\/code>\n        containing the purpose, required Python version, input format, how to run the program and the tests you performed. GitHub documents how a repository README helps other people understand and use a project.\n        <a aria-label=\"Reference 6\" href=\"#source-6\">\n          [6]\n        <\/a>\n        For a full walkthrough of presenting completed work, see\n        <a href=\"https:\/\/niteducation.com\/resources\/how-to-build-a-coding-portfolio\/\">\n          NIT&#8217;s coding portfolio guide\n        <\/a>\n        .\n      <\/p>\n    <\/section>\n    <section aria-labelledby=\"careers-title\" id=\"careers\">\n      <h2 id=\"careers-title\">\n        Can three months of Python get you a programming job?\n      <\/h2>\n      <p>\n        Three months of study\n        <strong>\n          does not by itself demonstrate professional readiness\n        <\/strong>\n        . A beginner project shows that you can begin solving problems with code. Employment typically depends on the particular role, the quality of your work, additional technical knowledge and your ability to explain and maintain what you built. Avoid promising yourself or others a job solely because you have reached a calendar milestone.\n      <\/p>\n      <p>\n        If you later want to demonstrate employment-related work,\n        <a href=\"https:\/\/niteducation.com\/resources\/ict-portfolio-projects-in-kenya\/\">\n          NIT&#8217;s ICT portfolio projects for jobs in Kenya\n        <\/a>\n        covers that separate goal. Here, the first priority is to master small independent Python programs.\n      <\/p>\n      <h3>\n        What should you learn in months four to six?\n      <\/h3>\n      <p>\n        Choose one direction after you can build and test small programs:\n      <\/p>\n      <div class=\"nit-table-wrap\">\n        <table class=\"nit-table\">\n          <thead>\n            <tr>\n              <th scope=\"col\">\n                If you enjoy\u2026\n              <\/th>\n              <th scope=\"col\">\n                Explore next\n              <\/th>\n              <th scope=\"col\">\n                A sensible follow-up project\n              <\/th>\n            <\/tr>\n          <\/thead>\n          <tbody>\n            <tr>\n              <td>\n                Repetitive tasks\n              <\/td>\n              <td>\n                File operations and safe automation\n              <\/td>\n              <td>\n                Generate a report from a practice folder\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                Working with data\n              <\/td>\n              <td>\n                SQL, pandas and charts\n              <\/td>\n              <td>\n                Analyse a fictional or public CSV dataset\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                Building software systems\n              <\/td>\n              <td>\n                Git, databases, APIs, testing\n              <\/td>\n              <td>\n                Small app that stores and retrieves records\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                AI and machine learning\n              <\/td>\n              <td>\n                Data preparation, statistics and evaluation\n              <\/td>\n              <td>\n                Explain patterns in a carefully chosen practice dataset\n              <\/td>\n            <\/tr>\n            <tr>\n              <td>\n                Cybersecurity\n              <\/td>\n              <td>\n                Networks, Linux and authorised labs\n              <\/td>\n              <td>\n                Offline analysis of deliberately created sample logs\n              <\/td>\n            <\/tr>\n          <\/tbody>\n        <\/table>\n      <\/div>\n      <p class=\"nit-table-note\">\n        On a phone, swipe this table sideways to see all columns.\n      <\/p>\n      <p>\n        If your next goal is a broader analytics portfolio using Excel, SQL or Power BI, follow\n        <a href=\"https:\/\/niteducation.com\/resources\/data-analyst-projects-for-beginners-kenya\/\">\n          NIT&#8217;s separate data-analyst projects guide\n        <\/a>\n        rather than treating this Python foundation lesson as a full data-analytics curriculum.\n      <\/p>\n      <p>\n        A useful progression is\n        <strong>\n          one finished project \u2192 one verified improvement \u2192 a different project using the same skills\n        <\/strong>\n        . That develops independence before specialisation.\n      <\/p>\n    <\/section>\n    <section aria-labelledby=\"faq-title\" id=\"faq\">\n      <h2 id=\"faq-title\">\n        Frequently asked questions\n      <\/h2>\n      <div class=\"nit-pg-faq\">\n        <details>\n          <summary>\n            Is three months enough to learn Python?\n          <\/summary>\n          <div>\n            <p>\n              It can be enough to practise fundamentals and complete small programs, depending on what you studied and how consistently you wrote code. Decide what to tackle next from the six skills check and your ability to finish an independent project, not from elapsed time alone.\n            <\/p>\n          <\/div>\n        <\/details>\n        <details>\n          <summary>\n            What is the easiest useful Python project?\n          <\/summary>\n          <div>\n            <p>\n              A fare or stationery-price calculator is a good start because you can calculate the expected answer manually and test invalid values. After that, a five-question quiz adds loops, lists and conditions.\n            <\/p>\n          <\/div>\n        <\/details>\n        <details>\n          <summary>\n            Can I build an app after three months of learning Python?\n          <\/summary>\n          <div>\n            <p>\n              You may be able to create a useful command-line application, such as a quiz or local tracker. A browser-based application or mobile app adds other technologies and design decisions; it should be a later goal unless you already have those skills.\n            <\/p>\n          <\/div>\n        <\/details>\n        <details>\n          <summary>\n            Can I complete these projects without internet access?\n          <\/summary>\n          <div>\n            <p>\n              Yes. Their first versions can run locally with Python and fictional data files. You may need internet access to obtain software or learning materials initially, depending on your setup.\n            <\/p>\n          <\/div>\n        <\/details>\n        <details>\n          <summary>\n            Can I practise Python on an Android phone instead of a computer?\n          <\/summary>\n          <div>\n            <p>\n              Some Android coding environments can run small Python scripts, but file locations, terminal commands and installed features vary by app. The calculator is a reasonable first experiment on a phone. For the CSV sales report, a school lab computer or laptop is usually easier because you can see the script and the data file side by side. Whichever device you use, confirm that it runs Python 3 and that you can find the folder containing your files.\n            <\/p>\n          <\/div>\n        <\/details>\n        <details>\n          <summary>\n            Do I need Django, Flask, pandas or AI for my first project?\n          <\/summary>\n          <div>\n            <p>\n              No. The worked examples use Python&#8217;s standard library. Learn a framework or package when your next problem genuinely calls for it.\n            <\/p>\n          <\/div>\n        <\/details>\n        <details>\n          <summary>\n            How do I know my Python program is correct?\n          <\/summary>\n          <div>\n            <p>\n              Write expected results before running it, compare them with actual outputs, try invalid and boundary inputs, then repeat those checks after editing the code. Test failures help reveal which assumption or requirement needs attention.\n            <\/p>\n          <\/div>\n        <\/details>\n        <details>\n          <summary>\n            Can Python help with a small business in Kenya?\n          <\/summary>\n          <div>\n            <p>\n              Yes. With properly authorised data, Python can support calculations, reports and repetitive record tasks. The fictional shop example shows the underlying technique; it is not a replacement for production accounting controls.\n            <\/p>\n          <\/div>\n        <\/details>\n        <details>\n          <summary>\n            What if I finish only one project after three months?\n          <\/summary>\n          <div>\n            <p>\n              That can still be useful progress. A small project you understand, improve and test independently is a stronger foundation than several copied programs you cannot explain.\n            <\/p>\n          <\/div>\n        <\/details>\n      <\/div>\n    <\/section>\n    <section aria-labelledby=\"register-title\" id=\"register\">\n      <h2 id=\"register-title\">\n        Learn practical Python at Newton Institute of Technology\n      <\/h2>\n      <p>\n        NIT lists\n        <strong>\n          Python Programming as a four-month part-time course\n        <\/strong>\n        in its current ICT catalogue.\n        <a aria-label=\"Reference 1\" href=\"#source-1\">\n          [1]\n        <\/a>\n      <\/p>\n      <div class=\"nit-pg-enrol\">\n        <div class=\"nit-pg-enrol__copy\">\n          <p class=\"nit-pg-kicker\">\n            NIT \u00b7 Practical ICT training\n          <\/p>\n          <h2>\n            Build confidence through practical Python training\n          <\/h2>\n          <p>\n            Want structured practice with programming fundamentals, useful applications and feedback on your work? NIT offers Python Programming alongside related ICT pathways in Full-Stack Software Development, Data Science &#038; Analytics and Artificial Intelligence. Ask admissions about intakes and delivery options.\n          <\/p>\n          <p>\n            <strong>\n              Explore NIT&#8217;s ICT courses and enquire about admission\n            <\/strong>\n            . Confirm the current intake and mode of study with admissions.\n          <\/p>\n        <\/div>\n        <div class=\"nit-pg-enrol__actions\">\n          <a class=\"nit-pg-button nit-pg-button--gold\" href=\"https:\/\/niteducation.com\/courses\/ict\">\n            Explore NIT ICT courses\n          <\/a>\n          <a class=\"nit-pg-button nit-pg-button--outline\" href=\"https:\/\/niteducation.com\/\">\n            Visit NIT website\n          <\/a>\n        <\/div>\n      <\/div>\n    <\/section>\n    <section aria-labelledby=\"references-title\" class=\"nit-pg-sources\" id=\"references\">\n      <h2 id=\"references-title\">\n        References and further learning\n      <\/h2>\n      <ol class=\"nit-list\">\n        <li id=\"source-1\">\n          <a href=\"https:\/\/niteducation.com\/courses\/ict\">\n            Newton Institute of Technology \u2014 School of ICT\n          <\/a>\n          . Current course catalogue, including Python Programming duration and study mode. Accessed 12 November 2026.\n        <\/li>\n        <li id=\"source-2\">\n          <a href=\"https:\/\/docs.python.org\/3\/tutorial\/\" target=\"_blank\" rel=\"noopener\">\n            Python Software Foundation \u2014 The Python Tutorial\n          <\/a>\n          . Variables, control flow, functions, data structures and exceptions. Accessed 12 November 2026.\n        <\/li>\n        <li id=\"source-3\">\n          <a href=\"https:\/\/docs.python.org\/3\/library\/pathlib.html\" target=\"_blank\" rel=\"noopener\">\n            Python Software Foundation \u2014\n            <code>\n              pathlib\n            <\/code>\n          <\/a>\n          . Working with file paths. Accessed 12 November 2026.\n        <\/li>\n        <li id=\"source-4\">\n          <a href=\"https:\/\/docs.python.org\/3\/library\/csv.html\" target=\"_blank\" rel=\"noopener\">\n            Python Software Foundation \u2014\n            <code>\n              csv\n            <\/code>\n          <\/a>\n          . Reading CSV files using\n          <code>\n            DictReader\n          <\/code>\n          and\n          <code>\n            newline=\"\"\n          <\/code>\n          . Accessed 12 November 2026.\n        <\/li>\n        <li id=\"source-5\">\n          <a href=\"https:\/\/docs.python.org\/3\/library\/unittest.html\" target=\"_blank\" rel=\"noopener\">\n            Python Software Foundation \u2014\n            <code>\n              unittest\n            <\/code>\n          <\/a>\n          . Running automated tests. Accessed 12 November 2026.\n        <\/li>\n        <li id=\"source-6\">\n          <a href=\"https:\/\/docs.github.com\/en\/repositories\/managing-your-repositorys-settings-and-features\/customizing-your-repository\/about-readmes\" target=\"_blank\" rel=\"noopener\">\n            GitHub Docs \u2014 About READMEs\n          <\/a>\n          . Documenting code projects. Accessed 12 November 2026.\n        <\/li>\n      <\/ol>\n      <p>\n        <em>\n          Prepared by Newton Institute of Technology Editorial Team \u00b7 Educational resource \u00b7 12 November 2026. All worked financial and student examples use invented data.\n        <\/em>\n      <\/p>\n    <\/section>\n  <\/div>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>Python learning \u00b7 Beginner projects \u00b7 What Can You Build After 3 Months of Learning Python? 30 \u2192 60 \u2192 90 days \u00b7 8 practical projects Three months of steady Python practice can lead to useful programs\u2014not just exercises. Check what you can do, choose from eight beginner projects and follow two runnable examples with [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[30],"tags":[36,58,84,842],"class_list":["post-3809","post","type-post","status-publish","format-standard","hentry","category-ict","tag-best-ict-courses-after-kcse","tag-cyber-security-training-in-kenya","tag-software-development","tag-what-can-you-build-after-3-months-of-python-8-beginner-projects"],"_links":{"self":[{"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/posts\/3809","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/comments?post=3809"}],"version-history":[{"count":2,"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/posts\/3809\/revisions"}],"predecessor-version":[{"id":3866,"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/posts\/3809\/revisions\/3866"}],"wp:attachment":[{"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/media?parent=3809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/categories?post=3809"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/tags?post=3809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}