Tech Getz

Main Menu

  • Mobile
  • Apple
  • Computer
  • Contact Us
Sign in / Join

Login

Welcome! Login in to your account
Lost your password?

Lost Password

Back to login

logo

  • Mobile
    • Oneplus 9 pro launching on March 23

      03/10/2021
      0
    • JIO starts 5G service in India next year:Mukesh Ambani

      12/08/2020
      0
    • Xiaomi Mi 10 pro launched with 5G

      03/29/2020
      0
    • Redmi Note 9 Pro launched Rs 14999

      03/12/2020
      0
    • RealMe 6 pro launch in India on March 5

      02/26/2020
      0
    • Vivo S1 Pro Review

      01/27/2020
      0
    • Why Android Studio for App development?

      01/23/2020
      0
    • samsung Galaxy A50 specification and review

      12/28/2019
      0
    • How to stop adding someone to Whatsapp Group

      12/24/2019
      0
  • Apple
    • The story of Jobs and Ipod

      11/16/2020
      0
    • Jobs firing and return to Apple Inc

      10/09/2019
      0
    • Apple iPad 2018 Vs iPad 2017

      03/29/2018
      0
  • Computer
    • JIO starts 5G service in India next year:Mukesh Ambani

      12/08/2020
      0
    • How to enable WhatsApp 'Disappearing Messages' feature

      11/19/2020
      0
    • What is data Analyst and Scope?

      11/08/2020
      0
    • What is for Looping in C?

      09/29/2020
      0
    • Which is the first program language from Bill Gates

      09/20/2020
      0
    • Tiktok rival launched by Youtube

      09/16/2020
      0
    • Which is the first video Conferencing App In the World

      08/23/2020
      0
    • What are the Retan Tata's Investments in Startups

      08/13/2020
      0
    • What are Chinese Social Media Applications

      07/14/2020
      0
  • Contact Us
Computer
Home›Computer›HOW TO START A PYTHON PROGRAMMER IV

HOW TO START A PYTHON PROGRAMMER IV

By fazilmuhammed
02/25/2020
623
0
Share:

What is operator  in Python language

The operator is user to what function is need to work example 5+6 in this + is the operator and the function in this example is addition.The different types Operators which support Python language.

  • Arithmetic Operators
  • Comparison Operators or Relational
  • Assignment Operators
  • Logical Operators
  • Bit-wise Operators
  • Membership Operators
  • Identity Operators

The Arithmetic Operators

Operator Description Function
+ (Addition) Adds values on either side of the operator. x + y = z
– (Subtraction) Subtracts right hand operand from left hand operand. x – y = -z
* (Multiplication) Multiplies values on either side of the operator x * y = z
/ (Division) Divides left hand operand by right hand operand b / a = z
% Modulus Divides left hand operand by right hand operand and returns remainder b % a = 0
** Exponent Performs exponential (power) calculation on operators a**b =10 to the power 20
// Floor Division – The division of operands where the result is the quotient in which the digits after the decimal point are removed. But if one of the operands is negative, the result is floored, i.e., rounded away from zero (towards negative infinity) − 9//2 = 4 and 9.0//2.0 = 4.0, -11//3 = -4, -11.0//3 = -4.0

Source Tutorial point

The Comparison Operators or Relational

The operator is used for the comparison that means less than (<), equal to (==)

Operator Description Function
== The values of two operands are equal (a == b)
!= The values of two operands are not equal, then condition becomes true. (a != b) is true.
<> The values of two operands are not equal, then condition becomes true. (a <> b) is true. This is similar to != operator.
> The value of left operand is greater than the value of right operand. (a > b) is not true.
< The value of left operand is less than the value of right operand, (a < b) is true.
>= The value of left operand is greater than or equal to the value of right operand. (a >= b) is not true.
<= The value of left operand is less than or equal to the value of right operand. (a <= b) is true.

The  Assignment Operators

This operator is used for assigning the value that means a=10, this means the value of a is 10.

Operator Description Function
= Assigns values from right side operands to left side operand c = a + b assigns value of a + b into c
+= Add AND It adds right operand to the left operand and assign the result to left operand c += a is equivalent to c = c + a
-= Subtract AND It subtracts right operand from the left operand and assign the result to left operand c -= a is equivalent to c = c – a
*= Multiply AND It multiplies right operand with the left operand and assign the result to left operand c *= a is equivalent to c = c * a
/= Divide AND It divides left operand with the right operand and assign the result to left operand c /= a is equivalent to c = c / a
%= Modulus AND It takes modulus using two operands and assign the result to left operand c %= a is equivalent to c = c % a
**= Exponent AND Performs exponential (power) calculation on operators and assign value to the left operand c **= a is equivalent to c = c ** a
//= Floor Division It performs floor division on operators and assign value to the left operand c //= a is equivalent to c = c // a

The  Bit-wise Operators

The operator which perform the bit operations that means logical AND, NOT

Operator Description Function
 AND Operator copies a bit to the result if it exists in both operands (a & b) (means 0000 1100)
| OR It copies a bit if it exists in either operand. (a | b) = 61 (means 0011 1101)
 XOR It copies the bit if it is set in one operand but not both. (a ^ b) = 49 (means 0011 0001)
~  Ones Complement It is unary and has the effect of ‘flipping’ bits. (~a ) = -61 (means 1100 0011 in 2’s complement form due to a signed binary number.
<<  Left Shift The left operands value is moved left by the number of bits specified by the right operand. a << 2 = 240 (means 1111 0000)
>>  Right Shift The left operands value is moved right by the number of bits specified by the right operand. a >> 2 = 15 (means 0000 1111)

The Membership Operators

The operator which used for the membership in a sequence, such as strings, lists, or tuples.

Operator Description Example
in Evaluates to true if it finds a variable in the specified sequence and false otherwise. x in y, here in results in a 1 if x is a member of sequence y.
not in Evaluates to true if it does not finds a variable in the specified sequence and false otherwise. x not in y, here not in results in a 1 if x is not a member of sequence y.

The Identity Operators

The operator function is for memory address of the object

Operator Description function
is If the variables on either side of the operator point to the same object and false otherwise. x is y, here is results in 1 if id(x) equals id(y).
is not If the variables on either side of the operator point to the same object and true otherwise. x is not y, here is not results in 1 if id(x) is not equal to id(y).
Previous Article

What Inside Inside the letter of Warren ...

Next Article

RealMe 6 pro launch in India on ...

0
Shares
  • 0
  • +
  • 0
  • 0
  • 0
  • 0

Related articles More from author

  • Computer

    First ever registered website in the world

    02/09/2019
    By fazilmuhammed
  • ComputerUncategorized

    First Computer virus

    05/20/2018
    By fazilmuhammed
  • Computer

    What is the Algorithm for Google search?

    01/10/2020
    By fazilmuhammed
  • Computer

    Google Search Engine tools and Techniques

    03/11/2018
    By fazilmuhammed
  • ComputerUncategorized

    AI courses by GOOGLE

    04/25/2018
    By fazilmuhammed
  • Computer

    Important Shortcut Keys System for windows

    08/17/2019
    By fazilmuhammed

Leave a reply Cancel reply

  • Computer

    Top 5 Mobile phones Under Rs 13000

  • Tech Getz

    Untouchability

  • Computer

    What is SAP? Define SAP job scope

  • Recent

  • Popular

  • Comments

  • Oneplus 9 pro launching on March 23

    By fazilmuhammed
    03/10/2021
  • JIO starts 5G service in India next year:Mukesh Ambani

    By fazilmuhammed
    12/08/2020
  • How to enable WhatsApp ‘Disappearing Messages’ feature

    By fazilmuhammed
    11/19/2020
  • The story of Jobs and Ipod

    By fazilmuhammed
    11/16/2020
  • What is data Analyst and Scope?

    By fazilmuhammed
    11/08/2020
  • Oneplus 9 pro launching on March 23

    By fazilmuhammed
    03/10/2021
  • WHAT IS BELUGA CAVIAR

    By fazilmuhammed
    07/23/2017
  • BEST SELLING AUTOMOBILES

    By fazilmuhammed
    07/23/2017
  • Rare Stories About Dr. APJ Abdul Kalam

    By fazilmuhammed
    07/26/2017
  • Is it coffee help you live longer?

    By fazilmuhammed
    08/02/2017

Tech News

  • MobileTechnology

    Oneplus 9 pro launching on March 23

    The waiting is over for Oneplus 9 pro, the phone will be launching on March 23. The main feature of the phone camera is provided by Hasselbad. The Hasselbad is ...
  • ComputerMobile

    JIO starts 5G service in India next year:Mukesh Ambani

    Jio 5G service will be launch may be in June 2021 said Mukesh Ambani during his keynote at India Mobile Congress 2020.Jio developing affordable android phone. The collaboration with Google ...
  • Computer

    How to enable WhatsApp ‘Disappearing Messages’ feature

    In the new updation of Whatsapp introduced new feature is disappearing message feature. This feature is once enabled, new messages sent in the individual or group chat will disappear after ...
  • Apple

    The story of Jobs and Ipod

    Ipod is the Apple’s one of the creative productive. In the 1990s walkman is the portable music player, but it is bulky. In the time Steve Jobs things 1000 music ...
  • Computer

    What is data Analyst and Scope?

    The data analyst can do the transforming data into information. This will improve knowledge and business. Now data analysis plays a role in making decisions more scientific and helping businesses ...

About Us

Contact Us


  • +919995217791
  • techyget@gmail.com
  • Recent

  • Popular

  • Comments

  • Oneplus 9 pro launching on March 23

    By fazilmuhammed
    03/10/2021
  • JIO starts 5G service in India next year:Mukesh Ambani

    By fazilmuhammed
    12/08/2020
  • How to enable WhatsApp ‘Disappearing Messages’ feature

    By fazilmuhammed
    11/19/2020
  • The story of Jobs and Ipod

    By fazilmuhammed
    11/16/2020
  • Oneplus 9 pro launching on March 23

    By fazilmuhammed
    03/10/2021
  • WHAT IS BELUGA CAVIAR

    By fazilmuhammed
    07/23/2017
  • BEST SELLING AUTOMOBILES

    By fazilmuhammed
    07/23/2017
  • Rare Stories About Dr. APJ Abdul Kalam

    By fazilmuhammed
    07/26/2017

Follow us

© Copyright TECHGETZ. All rights reserved.