Skip to content

Commit 818c8d8

Browse files
committed
calc, explorer bg
1 parent bec5fd3 commit 818c8d8

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)