{{ message }}

# Episode 1 - BODMAS - Knowledge #627

Open
opened this issue Mar 5, 2019 · 4 comments
Open

# Episode 1 - BODMAS - Knowledge #627

opened this issue Mar 5, 2019 · 4 comments

### sihart25 commented Mar 5, 2019

 In the first lesson Variables: Any Python interpreter can be used as a calculator: `3 + 5 * 4` If we are introducing new syntax/programming concepts do we need to get people to think about Mathematical operator order of precedence as well? and in a way knowledge of the python operator order of precedence. The text was updated successfully, but these errors were encountered:

### annefou commented Mar 5, 2019

 Python's operator precedence rules mirror those in mathematics. I don't know if adding this information would be helpful or add possible confusion.

### sihart25 commented Mar 5, 2019

 true adding the extra could create extra confusion so would the example be better as say `3 + 5` Avoiding any unintended inference to operator precedence or would this remove the idea of combining operations?

### maxim-belkin commented Mar 5, 2019

 Hi @sihart25 and welcome to our repository! Using `3 + 5 * 4` as an example in the introduction serves two purposes: 1) convey the fact that Python interpreter can be used as a "calculator" 2) It follows standard mathematical rules. As with any lesson out there, we have to draw a borderline somewhere and this is the case here: if the order of mathematical operations is a problem, then this lesson is not the right lesson to start with (SWC lessons are for beginning scientists). We also don't mention other operations (such as exponentiation, which is ** and not ^, which is a bitwise XOR) for the same reason: this is not the goal here. Here we just want to say that you can do math in Python interpreter and quickly transition to variables.

### Ovo-Akpome1 commented Mar 20, 2019

 I think it is important to introduce the concept of BODMAS, but not in a confusing way. They should tell the participants that when python does mathematical operations, it follow the law of BODMAS.Therefore, they do not have to write an extra command to specify the order of the mathematical operation to get the correct answer.