Jump to content



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.

Link to comment
Share on other sites

  • 6 months later...

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"
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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...