Skip to content

Commit d194ecf

Browse files
authored
Merge pull request #15 from pythonleo/master
calc, explorer bg
2 parents 1a8a562 + 818c8d8 commit d194ecf

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

calc.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Our "scriptable calculator"
2+
# Calculates an expression
3+
# Enter q to quit
4+
5+
from math import *
6+
7+
def calc(working_dir, *args): # arguments are completely unused
8+
expr = input()
9+
while expr != 'q':
10+
print(eval(expr))
11+
expr = input()

res/explorer.jpg

36.9 KB
Loading

0 commit comments

Comments
 (0)