# 2 python operators

Operators are special symbols that perform specific operations on one or more operands (values) and then return a result. For example, you cancalculate the sum of two numbers using an addition (+) operator.Operator and OperandsPython has seven types of operators that we can use to perform different operation and produce a result.1. Arithmetic operator2. Relational operators3. Assignment operators4. Logical operators5. Membership operators6. Identity operators7. Bitwise operators1. Arithmetic operatorArithmetic operators are the most commonly used. The Python programming language provides arithmetic operators that perform addition,subtraction, multiplication, and division. It works the same as basic mathematics.There are seven arithmetic operators we can use to perform different mathematical operations, such as:1. (+)(Addition)2. (-)(Subtraction)3. (*) (Multiplication)4. (/) (Division)5. (//) Floor division)6. () (Modulus)7. (**) (Exponentiation)OperatorMeaningExample+Addtwo operands or unary plus-Subtract right operand from the left or unary minusx - y- 2*Multiply two operandsx*y/Divide left operand by the right one (always results into float)x/y%Modulus - remainder of the division of left operand by the rightx % y (remainder of x/y)//Floor division - division that results into whole number adjusted to the left in the number linex // y**Exponent - left operand raised to the power of rightx**y (x to the ...

To Order an Original Plagiarism Free Paper on the Same Topic Click Here

### Related Questions

##### Business Finance : Case: Creating a Process-Drive...

Case: Creating a Process-Driven Organization at AgCredit: This case is located in the book on page 473. ( book is IST 7100 IT Policy & Strategy AU...

##### Business Finance : Integrity and leadership, mana...

This week's Assignment consists of viewing a scenario about Sandwich Blitz, Inc., reading an article about integrity in leadership as well as the...

##### Writing : GEN499: General Education Capstone Crit...

GEN499: General Education CapstonePrepare: In preparation for discussing the importance of critical thinking skills, please read Chapters 1 through 3...

##### Science : Review the Public Health Preparedness C...

Review the Public Health Preparedness Capabilities at http://www.cdc.gov/phpr/capabilities/dslr_capabilities_july.pdf. Pay specific attention to the P...

##### Writing : The use of GPS and mobile mapping for d...

i have a paper that is to be written about the use of GPS in agriculture and how the GPS systems helps make decisions that impact the farm.   Here i...

##### Humanities : Drawing to Painting paper, art & des...

750- to 1,050-word paper that explains how Raphael used drawing as part of his process for painting The Alba Madonna. Imagine that you have been aske...

##### Writing : Three Reading journals, writing homewor...

You will write a journal entry detailing your thoughts, impressions, and difficulties while reading the Above, you are expected to write down your tho...

##### Business Finance : TCO D Determine the costs asso...

According to Philip Crosby "Quality is Free." As a leader of a company, how will you set the operating budget for your Quality Department/Team and how...

##### Business Finance : Conduct a SWOT Analysis, manag...

Select an organization and describe its history, products, and major competitors in a paragraph or two. Develop a SWOT analysis detailing the strength...

##### Humanities : Examine two of the electronic resour...

As we have noted throughout the course, our world is becoming increasingly urbanized. Indeed, in Chapter 29 of your textbook, Walter P. Zenner makes t...

##### Humanities : Squatter Cities: The Cities of Tomor...

View Welcome to Lagos. Ep 3.1 (http://www.youtube.com/watch?v=B_HGHj5kTM4&feature=share&list=PLEEAB6EEE6C8A4393). Also, revisit the video from Week...

##### Humanities : Examine the role of reform in Americ...

Answer the following prompt in an extended (long) essay: Examine the role of reform in American society from 1877 to the present. Looking at Populism,...

##### Humanities : Cultural Media Perspective, history...

Unit VII Essay Cultural Media Perspective As you have learned from this unit, the views and opinions within culture began evolving during the 60s and...

##### Business Finance : Business Ethics and Social Res...

Resolving Ethical Business Challenges: Jerry Read “Resolving Ethical Business Challenges” in Chapter 9 of your text, and then address the followin...

##### Business Finance : Visualize yourself as an execu...

Visualize yourself as an executive at Target. Develop a policy to empower customer service desk associates to resolve customer problems, including the...

##### Humanities : How did America's role in world...

Answer the following prompt in an extended (long) essay: How did America's role in world politics change from 1877 to the present? In what ways ca...

##### Writing : The Four Principles of Biomedical Ethic...

Please do a paragraph about this post with this instruction .post most have  4 or more  sentences . you also have to have a high quality post from...

##### Writing : The Four Principles of Biomedical Ethic...

Please do a paragraph about this post with this instruction . post most have  4 or more  sentences .  you also have to have a high quality post f...

##### Science : Common sense and compassion in the work...

Write a 700- to 1,050-word paper that examines the effect of legal, safety, and regulatory requirements on the human resources process as they relate...

##### Writing : Reading Quiz: García Márquez and Ngug...

Reading Quiz: García Márquez and Ngugi     Senator Onésimo Sánchez Laura Farina Miriamu Wariuki/Livingstone The Concept and Realization of the...

##### Humanities : The Global Trader, history homework...

You are a trader on the Silk Road. You can be Chinese, Mongolian, Arabian, Byzantine, or Venetian. Your job is to gain access to spices, incense, glas...

##### Mathematics : Mathematics 231 Part I: Select a pi...

Part I:  Select a piece of real estate (residential, commercial, warehouse, land), any number of resources can be used (www.realtor.com is one optio...

##### Business Finance : Rethinking activity based cost...

I have homework, which is summers of the Young Reader Case ( Rethinking activity based costing) and Relationship of the Case to your work experience (...

##### Humanities : Texas Political essay, political sci...

Hello,I have an essay assignment.The requirement is:Assignment: The goal of this assignment is for you to reflect on the subject matter covered in the...

## If you didn't find the right answer

Ask Your Questions, We'll notify you once someone answers it