What will be the value of the following Python expression? 4 + 3 % 5

Questions & AnswersCategory: Programming LanguageWhat will be the value of the following Python expression? 4 + 3 % 5
1 Answers
Geek Boy Staff answered 2 years ago

a. 7
Explanation: The order of precedence is: %, +. Hence the expression above, on simplification results in 4 + 3 = 7. Hence the result is 7.