• Home
  • Courses
    • NSE Academy Certified Courses
      • Capital Market Analytics
      • Certified Program on Intraday Trading Strategies
      • Advanced Technical Analysis
      • Advanced Options
      • Advanced Algo Trading
      • Advanced Fundamental Analysis
      • Advanced Risk Management
      • Algorithmic Trading & Computational Finance using Python & R
    • TC Courses
      • FSM 1.0
      • FSM 2.0
      • Mentorship Program
  • Learning Center
    • Financial Education
    • IPO Issues
    • Fundamental Analysis
    • Technical Corner
    • Options Corner
    • Risk Management
  • Screener
  • Emerging Leaders
  • Terminal
  • Subscribe
Have any question?
7718989954
info@tradingcampus.in
Login
Trading CampusTrading Campus
  • Home
  • Courses
    • NSE Academy Certified Courses
      • Capital Market Analytics
      • Certified Program on Intraday Trading Strategies
      • Advanced Technical Analysis
      • Advanced Options
      • Advanced Algo Trading
      • Advanced Fundamental Analysis
      • Advanced Risk Management
      • Algorithmic Trading & Computational Finance using Python & R
    • TC Courses
      • FSM 1.0
      • FSM 2.0
      • Mentorship Program
  • Learning Center
    • Financial Education
    • IPO Issues
    • Fundamental Analysis
    • Technical Corner
    • Options Corner
    • Risk Management
  • Screener
  • Emerging Leaders
  • Terminal
  • Subscribe

Basics of Python

  • Home
  • Blog
  • Basics of Python
  • Arithmetic Operators

Arithmetic Operators

  • Posted by admin22
  • Date May 12, 2021

There are around 7 arithmetic operators available in python. These are called as binary operators because they act on two operators.

a = 13, b = 5

Operator Meaning Example Result
+ Addition Operator a+b 18
– Subtraction Operator a-b 8
* Multiplication Operator a*b 65
/ Division Operator a/b 2.6
% Modulus Operator a%b 3
** Exponent Operator a**b 371293
// Integer Division Operator a//b 2

Operator Precedence

When there are several operators in an equation, it is evaluated based on operator precedence. For example lets take an expression (1+2)*3*2//2+3

First preference would be given to operands inside parenthesis – (1+2) = 3

Second preference would be given to Exponentiation i.e **   –   3**2 = 9

Next Multiplication, Division, Modulus and floor divisions are given equal priority –  3*9//2+3 = 27//2+3 = 13+3

Next Addition and subtraction are preferred – 13 + 3 = 16

Final preference is given to assignment operator. 16 is assigned to an operand on LHS of ‘=’

 

  • Share:
author avatar
admin22

Previous post

Operators in Python
May 12, 2021

You may also like

Operators in Python
11 May, 2021

An operator is a symbol that performs an operation. Some examples of operations are addition, subtraction, multiplication etc. a + b is an operation where a,b are operands and ‘+’ …

Bear Call Spread
23 December, 2020

Bear call spread is an option strategy used by traders to cap their maximum loss. At first, a trader is bearish with the downside capped, so he initiates a sell …

Bull Put Spread
21 December, 2020

Bull put spread is an option strategy used by traders to cap their maximum loss. At first, a trader is bullish with the upside capped, so he initiates an ITM …

emerging leader

  • Basics of Python
  • Emerging Leaders
  • Financial Education
  • Fundamental Analysis
  • Investment Ideas
  • IPO Issues
  • Nifty 50
  • Options Corner
  • Risk Management
  • Technical Corner
  • Uncategorized

Past Batches

December 2018 – Completed

March 2019 – Completed

July 2019 – Completed

November 2019 – Completed

January  2020 – Running

Get Updates

Subscribe to our mailing list and get learning stuff and updates to your email inbox
Loading

Accordions

Company Summary

Bajaj Electricals Limited is engaged in engineering and projects; power distribution, illumination and consumer durables businesses.

It has a range of domestic and kitchen appliances comprising water heaters, room heaters, coolers, irons, mixers, induction cookers, toasters, kettles, microwave, rice cookers, gas stoves, non-electrical kitchen aids and pressure cookers.

It offers ceiling, table, pedestal, wall, fresh air and industrial fans, and lighting solutions, such as light sources, light emitting diode-based lighting products, domestic luminaires, torches and lanterns.

Key Highlights of Company Business

Segments and Products

The Company's business segments consist of

  1. Lighting;
  2. Consumer Durables;
  3. Engineering & Projects,

The Lighting segment includes lamps, tubes and luminaries.

The Consumer Durables segment includes appliances and fans.

The Engineering & Projects segment includes transmission line towers, telecommunications towers, highmast, poles and special projects.

The Others segment includes diecasting and wind energy.

Financial Performance

Financial Ratios

Trading Campus

7718989954

info@tradingcampus.in

Company

  • About Us
  • Gallery
  • Team
  • Contact Us
  • Careers

Courses

  • Technical Analysis
  • Algo Trading
  • Options
  • Fundamental Analysis
  • Risk Management
  • Algo Trading using Python

Support

  • Learning Center
  • Forum
  • Login
  • Videos

Education WordPress Theme by ThimPress. Powered by WordPress.

Copyright © 2018 Trading Campus. All rights reserved.