Jump to content
Russ

Python

Recommended Posts

Is there a link that indicates what version of python, and what python modules, have been installed on the server?

 

Also, I any information on how to run python scripts from my domain would be very helpful. I have some ".py" files that I have on my laptop that I would like to run from my site, and imagine some modifications are necessary to run from the server?

 

Thanks in advance for any help.

Share this post


Link to post
Share on other sites

Please open a ticket to our support department, our techs will check it out and get back to you

Share this post


Link to post
Share on other sites

I wanted to test if a key exists in a dictionary before updating the value for the key. I wrote the following code:

if 'key1' in dict.keys():
print "blah"
else:
print "boo"

I think this is not the best way to accomplish this task. Is there a better way to test for a key in the dictionary for python?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×