Python Operators

Python Operators

In Python, operators are special symbols or characters that perform specific operations on operands (variables or values). Python provides various types of operators to manipulate and perform calculations on data. Here are the different types of operators in Python:

  1. Arithmetic Operators:
    • Addition: ‘+’
    • Subtraction: ‘-‘
    • Multiplication: ‘*’
    • Division: ‘/’
    • Floor Division: ‘//’
    • Modulo: ‘%’
    • Exponentiation: ‘**’
  2. Assignment Operators:
    • Assignment: ‘=’
    • Addition assignment: ‘+=’
    • Subtraction assignment: ‘-=’
    • Multiplication assignment: ‘*=’
    • Division assignment: ‘/=’
    • Modulo assignment: ‘%=’
    • Floor division assignment: ‘//=’
    • Exponentiation assignment: ‘**=’
  3. Comparison Operators:
    • Equal to: ‘==’
    • Not equal to: ‘!=’
    • Greater than: ‘>’
    • Less than: ‘<‘
    • Greater than or equal to: ‘>=’
    • Less than or equal to: ‘<=’
  4. Logical Operators:
    • Logical AND: ‘and’
    • Logical OR: ‘or’
    • Logical NOT: ‘not’
  5. Bitwise Operators:
    • Bitwise AND: ‘&’
    • Bitwise OR: ‘|’
    • Bitwise XOR: ‘^’
    • Bitwise NOT: ‘~’
    • Left shift: ‘<<‘
    • Right shift: ‘>>’
  6. Membership Operators:
    • In: ‘in’
    • Not in: ‘not in’
  7. Identity Operators:
    • Is: ‘is’
    • Is not: ‘is not’

These are the fundamental operators in Python. They allow you to perform arithmetic calculations, assign values, compare values, perform logical and bitwise operations, check membership, and check object identity.

Leave a Reply

Your email address will not be published. Required fields are marked *

GLOTRU Footer
Popular Features
Popular Services/

Website Development & Design

App Development & Design

Graphic Design

Digital Marketing

SEO (Search Engine Optimization)

SMM (Social Media Marketing)

Cyber Security

Company

GLOTRU Founder & CEO : __Azam

Registared : Trade,MSME,etc

Board of Director

Team

About Us

Contact Us

Privacy Policy

Return & Refund Policy

Abuse Policy

Copyright Policy

Cookie Policy

Terms & Conditions

Universal Terms of Service

Disclaimer

Legal

Sponsorships

Investor

Press Releases

Our Investments

Brands

Newsroom

Business

...

_

Digital Millennium Copyright Act
DMCA.com Protection Status

_

Content similarity detection
Protected by Copyscape

_

***ANTI-PIRACY WARNING***

...................................................................................

Follow Us :

...................................................................................

SECURE SERVER : [Legal] [Privacy Policy] [Universal Terms of Service] [Do not sell my personal information]

SITE HOSTED : GLOTRU SECURE SERVER Asian Data Centre [You can host your site][Click Here]

SSL : Server Type : [Cloudflare] Certificate Issued By : [Let's Encrypt] Signature Algorithm : [ECDSA with SHA-384]

SITE BUILD SOFTWARE : Content Management System (CMS) Softwere

_

_

_