Skip to content

Commit 63baf74

Browse files
authored
Fixed formatting on if statement
1 parent dc6a5cd commit 63baf74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Simple Calculator Tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ floatnum2 = float(num2)
3232
Now that we have the numbers converted to float types, we are ready to do the math. For simplicity's sake in this lesson, we will use `if()` statements to tell what the user wants to do. In this program, we will support four operations, +,-,* and /, so we will need to have 4 if statements. One if statement for this program will look like,
3333
```py
3434
if operation == "+":
35-
output=floatnum1+floatnum2
35+
output=floatnum1+floatnum2
3636
```
3737
This checks to see if the user wanted to add the two numbers, and if they did, it adds them together.
3838
> NOTE: Python is whitespace sensitive, so make sure you indent the second line with two spaces, or the if statement will not compile.

0 commit comments

Comments
 (0)