Articles → Python → Order of calculation in python

Order of calculation in python






PEMDAS







Example




#PEMDAS Stands For

#P stands for Parenthesis
#E stands for Exponent
#M stands for Multiplication
#D stands for Division
#A stands for Addition
#S stands for Subtraction


print(2-3*5)
print(2**3*5)
print((2-3)*5)











Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Friday, February 15, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250