Python by Swaroop C H - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

Chapter 5. Operators and Expressions
Introduction

Most statements (logical lines) that you write will contain expressions. A simple example of an expression is2 + 3. An expression can be broken down into operators and operands.

Operators are functionality that do something and can be represented by symbols such as+ or by special keywords. Operators require some data to operate on and such data are called operands. In this case,2 and3 are the operands.