{"id":27771390,"url":"https://github.com/hananemirzaee/python-challenges1","last_synced_at":"2025-04-29T22:37:19.807Z","repository":{"id":290387048,"uuid":"974274941","full_name":"hananemirzaee/python-challenges1","owner":"hananemirzaee","description":"Python challenges for beginners.","archived":false,"fork":false,"pushed_at":"2025-04-28T14:39:38.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-28T15:36:17.960Z","etag":null,"topics":["challenges","if-else","operating-system","python","while-loop"],"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/hananemirzaee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-28T14:19:02.000Z","updated_at":"2025-04-28T14:39:42.000Z","dependencies_parsed_at":"2025-04-28T15:36:22.099Z","dependency_job_id":"d86ac26d-3c60-4b80-8c1d-4ce8f9f74641","html_url":"https://github.com/hananemirzaee/python-challenges1","commit_stats":null,"previous_names":["hananemirzaee/python-challenges1"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hananemirzaee%2Fpython-challenges1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hananemirzaee%2Fpython-challenges1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hananemirzaee%2Fpython-challenges1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hananemirzaee%2Fpython-challenges1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hananemirzaee","download_url":"https://codeload.github.com/hananemirzaee/python-challenges1/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251595912,"owners_count":21615003,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["challenges","if-else","operating-system","python","while-loop"],"created_at":"2025-04-29T22:37:19.194Z","updated_at":"2025-04-29T22:37:19.790Z","avatar_url":"https://github.com/hananemirzaee.png","language":"Python","readme":"# python challenges\n\n### Questions:\n\n**Question 1: Data Types**  \nCreate variables to store your name, age, and whether you are a student.  \nWrite a program that prints each variable along with its data type.\n\n---\n\n**Question 2: Type Conversion**  \nWrite a program that asks the user to enter a number (as a string).  \nConvert it to an integer and then print the square of the number.\n\n---\n\n**Question 3: Conditions**  \nWrite a program that asks the user to input a number.  \nCheck whether the number is positive, negative, or zero, and print the result.\n\n---\n\n**Question 4: Logical Operations**  \nWrite a program that asks the user for their age.  \nCheck if the age is between 18 and 30 (inclusive).  \nIf true, print \"You are in your twenties!\", otherwise print \"You are not in your twenties.\"\n\n---\n\n**Question 5: Mathematical Operations**  \nWrite a program that asks the user to input two numbers.  \nPerform addition, subtraction, multiplication, and division on these numbers and print the results.\n\n---\n\n**Question 6: if-elif-else**  \nWrite a program that takes the current temperature as input.  \n- If the temperature is below 0, print \"Freezing.\"  \n- If it's between 0 and 25, print \"Cold.\"  \n- If it's between 26 and 35, print \"Warm.\"  \n- If it's above 35, print \"Hot.\"\n\n---\n\n**Question 7: while Loop**  \nWrite a program that prints numbers from 1 to 10 using a `while` loop.\n\n---\n\n**Question 8: for Loop**  \nWrite a program that prints all elements of the list `[10, 20, 30, 40, 50]` using a `for` loop.\n\n---\n\n**Question 9: Conditions with Loops**  \nWrite a program that takes an integer input.  \n- If the number is even, print all even numbers from 0 up to that number using a `for` loop.  \n- If the number is odd, print all odd numbers from 0 up to that number.\n\n---\n\n**Question 10: Factorial with Loops**  \nWrite a program that takes a number as input and calculates its factorial using a `while` loop.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhananemirzaee%2Fpython-challenges1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhananemirzaee%2Fpython-challenges1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhananemirzaee%2Fpython-challenges1/lists"}