Arithmetic operators precedence and BEDMAS rule in Python | Python for beginners in Hindi Urdu 12

Опубликовано: 24 Март 2026
на канале: ifactner
780
17

We use the BEDMAS rule with arithmetic operators in Python to perform mathematical operations. When we are programming for mathematical operations then we should know the order in which equations will be calculated. For this we learn the BEDMAS rule so that we can easily remember which operation will be performed first.
BEDMAS tells us that in a mathematical operation first of all Brackets are calculated, then exponents, division, multiplication, addition and subtraction are calculated.

The code of lines which we have coded in Python in this Hindi Urdu tutorial are as follows:

BEDMAS and Airtmetic operators presendence
num_1 = (12 - 3) * 6 / 3
print(num_1)
B - Brackets
E - Exponents
D - Division
M - Multiplication
A - Addition
S - Subtraction
num_2 = 6 * (3 + 5) / 2
print(num_2)

Watch also:
1. Python basics programming tutorial for beginners | Python print hello world code in Hindi Urdu - part 1 at    • Python basics programming tutorial for beg...  .

2. Print function in Python to display multiple lines | Python programming tutorial in Hindi Urdu at    • Print function in Python to display multip...  

3. Introduction to Variables in Python | Python programming tutorial in Hindi Urdu at    • Introduction to Variables in Python | Pyth...  

4. Concatenation of strings and variables in PYTHON | Concatenating and type function in Python at    • Concatenation of strings and variables in ...  

5. Input function in Python with string function and concatenation | Python for beginners in Hindi Urdu at    • Input function in Python with string funct...  

6. Input function in Python with str and int functions for calculations | Python in Hindi Urdu at    • Input function in Python with str and int ...  

7. Python tutorial in Hindi Urdu | Convert cm to inches & Kgs to pounds in Python programming lesson 7 at    • Python tutorial in Hindi Urdu | Convert cm...  

8. Python string slicing and string indexes | Python tutorial for beginners in Hindi Urdu lesson 8 at    • Python string slicing and string indexes |...  

9. Formatted string in Python F-Strings in Python for string formatting for beginners in Hindi Urdu at    • Formatted string in Python F-Strings in Py...  

Full Python course in Hindi Urdu playlist at    • Python programming course in Hindi Urdu  .