- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstack.py
More file actions
Latest commit
19 lines (17 loc) · 468 Bytes
/
Copy pathstack.py
File metadata and controls
19 lines (17 loc) · 468 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
defmain():
a=10
b=55
#print("in function main....dir()=%s" % (dir()))
print("in function main....dir()=",dir())
result=absdiff(a,b)
#print("the absolute value of %d - %d = %d" % (a,b,result))
print("the absolute of ", a, "-", b, "=", result )
defabsdiff(x,y):
#print("in function main....dir()=%s" % (dir()))
print("in function main....dir()=",dir())
ifx>y:
z=x-y
else:
z=y-x
returnz
main()