Skip to content

Commit 9f55b92

Browse files
authored
adding example section to readme
1 parent 507cfcc commit 9f55b92

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,23 @@ Simple Math Interpreter in Python
66

77
```bash
88
python main.py
9-
calc > 5+5
10-
...
9+
```
10+
11+
## Example
12+
13+
```bash
14+
calc > 5
15+
5.0
16+
calc > -110
17+
-110.0
18+
calc > --110
19+
110.0
20+
calc > ---110
21+
-110.0
22+
calc > 5*4+5
23+
25.0
24+
calc > 5/2+4*4+(5/4-2)+1/1
25+
18.75
1126
```
1227

1328
## Unit Testing

0 commit comments

Comments
 (0)