{"id":18676982,"url":"https://github.com/abdulsamie10/pythonbasics","last_synced_at":"2026-04-20T03:31:31.747Z","repository":{"id":150726350,"uuid":"586553357","full_name":"abdulsamie10/PythonBasics","owner":"abdulsamie10","description":"This repository contains few tasks, which I developed just to get a strong grip on Python Programming Langauge.","archived":false,"fork":false,"pushed_at":"2023-01-08T15:09:47.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-18T13:14:13.699Z","etag":null,"topics":["ai","labtasks","lambda","numpy","python","pythonlab"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abdulsamie10.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-01-08T14:52:51.000Z","updated_at":"2023-01-08T15:11:31.000Z","dependencies_parsed_at":"2023-08-23T09:39:53.199Z","dependency_job_id":null,"html_url":"https://github.com/abdulsamie10/PythonBasics","commit_stats":null,"previous_names":["abdulsamie10/pythonbasics"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abdulsamie10/PythonBasics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdulsamie10%2FPythonBasics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdulsamie10%2FPythonBasics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdulsamie10%2FPythonBasics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdulsamie10%2FPythonBasics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdulsamie10","download_url":"https://codeload.github.com/abdulsamie10/PythonBasics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdulsamie10%2FPythonBasics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32031538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","labtasks","lambda","numpy","python","pythonlab"],"created_at":"2024-11-07T09:32:01.701Z","updated_at":"2026-04-20T03:31:31.723Z","avatar_url":"https://github.com/abdulsamie10.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"This repository only contains few basics tasks related to Python using Numpy and Lambda.\nI performed these tasks to get a strong grip on python as it was one  of my first development of programs using python.\n\nTasks are following:\n\nTASK 1:\nCreate a list of areas that contains the areas of the bedroom, hallway, bathroom, kitchen, and living room of a house with the following values respectfuly.\n\n112.0, 113.5, 189.5, 789.0 ,  230.2. \n\nMake a clone of the areas list and name it as float_area now remove all values except for float values in the float_area list. Do the same for string values as well and name it as str_area. Now you will have three lists.\n\nAreas\nFloat_area\nStr_area\n\na.\tPrint all elements of  lists using slicing \nb.\tPrint the area of bedroom along its name from Areas list using slicing \n\nTASK 2:\n Consider that you have won a lottery and you want to extend your house. Add \nanother list of the pool_area with the area allotted as ‘112.7, 177.9’. Along with this add a list garage with an area of 112.0. The final list will look something like this\n[‘bed’, 112.0 , ‘hall’, 113.5, ‘bath’, 189.5, ‘kit’,789.0, ‘liv’, 230.0 , [‘pool’,112.7,117.9],[‘grg’,112.0]].\n\nWrite a Python program to deep flattens the above list.Following is an example.\n\nOriginal list elements:\n[1, [2], [[3], [4], 5], 6]\nDeep flatten the said list:\n[1, 2, 3, 4, 5, 6]\nOriginal list elements:\n[[[1, 2, 3], [4, 5]], 6]\nDeep flatten the said list:\n[1, 2, 3, 4, 5, 6]\n\n\n\nTASK 3:\nWrite a Python program to extract values from a given dictionaries and create a list of lists from those values.\nOriginal Dictionary:\n\n[{'student_id': 1, 'name': 'Jean Castro', 'class': 'V'}, {'student_id': 2, 'name': 'Lula Powell', 'class': 'V'}, {'student_id': 3, 'name': 'Brian Howell', 'class': 'VI'}, {'student_id': 4, 'name': 'Lynne Foster', 'class': 'VI'}, {'student_id': 5, 'name': 'Zachary Simon', 'class': 'VII'}]\n\nExtract values from the said dictionarie and create a list of lists using those values:\n\n[[1, 'Jean Castro', 'V'], [2, 'Lula Powell', 'V'], [3, 'Brian Howell', 'VI'], [4, 'Lynne Foster', 'VI'], [5, 'Zachary Simon', 'VII']]\n[[1, 'Jean Castro'], [2, 'Lula Powell'], [3, 'Brian Howell'], [4, 'Lynne Foster'], [5, 'Zachary Simon']]\n[['Jean Castro', 'V'], ['Lula Powell', 'V'], ['Brian Howell', 'VI'], ['Lynne Foster', 'VI'], ['Zachary Simon', 'VII']]\nAnd vice versa\n\n\nTASK 4:\nLet’s suppose that you have a list of lists. This basically is a list of people and their favorite food items. Write a python function that returns the indices of people whose list of favorite food items is not a subset of any other list of favorites food items.Keep in mind that ou have to return the indices in increasing order. Following is the given list of lists\nFav_food_items = [[‘pizza’,’burger’,’hotdogs’] ,\n\n[‘pasta’,’hotdogs’],[‘pizza’],[‘burger’,’hotdogs’],[‘rice’ ,’pasta’] ,[‘pasta’]]\n\nOutput : [0,4]\nTASK 5:\nBuilds a ten-element tuple of random numbers and then sort the tupple in increasing order without using built-in function. Rember the result should be a tupple.\n\nNumpy \nTASK 1:\nWrite a NumPy program to create an array of 10 zeros, 10 ones, 10 fives.\n\n\nTASK 2:\nWrite a NumPy program to create a 3x4 matrix filled with values from 10 to 21.\n\nTASK 3:\nWrite a NumPy program to save a given array to a text file and load it.\n\nTASK 4:\nWrite a NumPy program to create a three-dimension array with shape (3,5,4) and set to a variable, then swap rows and columns of a given array in reverse order. \n\nLambda\nTASK 5:\nWrite a Python program to square and cube every number in a given list of integers using Lambda.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdulsamie10%2Fpythonbasics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdulsamie10%2Fpythonbasics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdulsamie10%2Fpythonbasics/lists"}