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

Join the conversation

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

Guest
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...