Forum: Python Sep 13th, 2008 |
| Replies: 2 Views: 472 Here, I fixed it up for you...It errored up because you had some braces and colons ( : )missing.
print"Simple Calculator"
def menu():
print"-------------------------------------------------"... |
Forum: Python Aug 22nd, 2008 |
| Replies: 3 Views: 1,757 First, import the os module:
import os
Then check if the path exists:
if os.path.exists(MY_PATH_HERE):
#Do something...
else:
#Throw an error |