Start learning →
Home › Olympiad (Class 10) › Computer Science › Booleans and Decisions › In Python the expression 1 + 2 * 3 evaluates to:

In Python the expression 1 + 2 * 3 evaluates to:

A5
B8
C7
D9
Answer & Solution
Correct answer: C. 7
1. Multiplication has higher precedence than addition. 2. Two times three is six, plus one is seven. 3. So the answer is 7. _Source: OpenStax Introduction to Python Programming, Chapter 4._
Practise this question with Quill — Olympiad (Class 10) →
Related questions