{"id":26172286,"url":"https://github.com/imdarshangk/operators","last_synced_at":"2025-06-10T22:03:10.863Z","repository":{"id":156251707,"uuid":"592423939","full_name":"imDarshanGK/Operators","owner":"imDarshanGK","description":"The \"Operators in Python\" repository showcases various Python operators, including arithmetic, logical, comparison, and assignment operators. Each operator is demonstrated with examples, providing a clear understanding of their functionality and how they can be applied in real-world coding scenarios.","archived":false,"fork":false,"pushed_at":"2024-12-13T17:54:55.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T19:55:49.887Z","etag":null,"topics":["arithmetic-operators","assignment-operators","identity-operators","left-shift-operator","logical-operators","membership-operators","python","relational-operators","right-shift-operator"],"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/imDarshanGK.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}},"created_at":"2023-01-23T17:47:50.000Z","updated_at":"2024-12-13T17:54:59.000Z","dependencies_parsed_at":"2024-02-03T01:24:33.258Z","dependency_job_id":"1e2e3d17-1657-4968-888c-8b19f3e77eb9","html_url":"https://github.com/imDarshanGK/Operators","commit_stats":null,"previous_names":["imdarshangk/operators"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imDarshanGK%2FOperators","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imDarshanGK%2FOperators/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imDarshanGK%2FOperators/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imDarshanGK%2FOperators/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imDarshanGK","download_url":"https://codeload.github.com/imDarshanGK/Operators/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imDarshanGK%2FOperators/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259159621,"owners_count":22814490,"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":["arithmetic-operators","assignment-operators","identity-operators","left-shift-operator","logical-operators","membership-operators","python","relational-operators","right-shift-operator"],"created_at":"2025-03-11T19:55:53.293Z","updated_at":"2025-06-10T22:03:10.839Z","avatar_url":"https://github.com/imDarshanGK.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Operators in Python ➗➕✖️\n\n## Overview\nThis repository contains Python programs demonstrating various operators. It covers arithmetic, comparison, logical, and assignment operators, with examples for each.\n\n## Features\n- Examples of different types of operators in Python.\n- Clear explanations and practical code snippets.\n- Demonstrates how to use operators in real-world scenarios.\n\n## Arithmetic operators\nAn arithmetic operator is a mathematical function that performs a calculation on two operands\n```\nsolution:\nArithmetic operators\n    \nAdd = 77\nSub = 13\nMul = 1440\nDiv = 1.40625\nMod = 13\nExp = 79946681398258369524447459012293256819248199462890625\nF.D = 1\n```\n```\nLeft shift\n40\n  \nBitwise NOT(~)\n-11\n 9\n\nBitwise OR\n236\n ```\n\n## Logical operators\nThere are used to compare two relational expressions, after comparison it gives True or False.\n```\nTrue\nFalse\nFalse\nFalse\nTrue\nTrue\nTrue\nFalse\nFalse\nTrue\n```\n## Assignment Operators\nIn fix which are used to perform operations on variables or operands and assign values to the operand on the leftside of the operator.\n```\na= 40\na+= 80\na-= 40\na*= 1600\na/= 40.0\na%= 0.0\na//= 0.0\n```\n\n## Relational operators\nIt is used to compare the two operands and it returns true or false.\n```\nTrue\nFalse\nTrue\nFalse\nTrue\nTrue\nFalse\n```\n\n## Right shift and Left shift\n```\n1} Bitwise Right Shift Operator\nThe bitwise right shift operator in python shifts the bits of the binary representation of the input number to the right side by a specified number of places. The empty bits created by shifting the bits are filled by 0s.\n\n2} Bitwise Left Shift Operator\nThe bitwise left shift operator in Python shifts the bits of the binary representation of the input number to the left side by a specified number of places. The empty bits created by shifting the bits are filled by 0s.  \n\nRight shift\n    Right shift is: 1\n\nLeft shift\n    Left shift is: 48\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimdarshangk%2Foperators","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimdarshangk%2Foperators","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimdarshangk%2Foperators/lists"}