Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Summary

Summary - Computer science

Rating
-
Sold
-
Pages
4
Uploaded on
08-12-2025
Written in
2025/2026

This document explain the expression in python. The types of operators like arithmetic , logical , relational and assignment operators in python and the keywords used in python

Institution
Course

Content preview

EXPRESSIONS IN PYTHON
An expression is a combination of values, i.e., constants, variables, and
operators. It generates a single value, which by itself is an expression.
For example,
2+3 here 2 and 3 are the operands and ‘+’ is an operator.
Converting mathematical expressions to equivalent Python expressions.
6B ---- 6*B
3bc+4 ---- 3*b*c+4
a=x+2
b-1 is equivalent to a=(x+2)/(b-1)
Operators: Operators are special symbols which represent computation. They
are applied on operand(s) which can be values or variables.
Operators are categorised as Arithmetic, Relational ,Logical and Assignment.

● Mathematical/Arithmetic Operators


Symbol Description Example 1 Example 2
+ Addition >>>55+45 >>>’Good’+’Morning’
100 GoodMorning
- Subtraction >>>55-45 >>>30-80
10 -50
* Multiplication >>>55*45 >>>’Good’*3
2475 GoodGoodGood
/ Division >>>17/5 >>>28/3
3.4 9.3333


% Remainder/Modulo >>>17%5 >>>23%2
2 1


** Exponentiation >>>2**3 >>>2**8
8 256
// Integer Division >>>7.0//2 >>>3//2
3.0 1

Written for

Institution
Secondary school
Course
School year
5

Document information

Uploaded on
December 8, 2025
Number of pages
4
Written in
2025/2026
Type
SUMMARY

Subjects

$8.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
sakshibhola

Get to know the seller

Seller avatar
sakshibhola Vanasthali Public School
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
4 months
Number of followers
0
Documents
3
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions