Jump to content


Photo

Python


  • Please log in to reply
2 replies to this topic

#1 Russ

Russ

    Distant Family

  • Members
  • PipPipPip
  • 143 posts

Posted 28 August 2016 - 08:27 AM

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.



#2 TCH-Bala

TCH-Bala

    Technical Support Manager

  • Staff
  • PipPipPipPip
  • 1,759 posts

Posted 28 August 2016 - 06:54 PM

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


Balakrishnan
Manager - Technical Support
TotalChoice Hosting, Inc.
http://www.totalchoicehosting.com

TCH Help Desk .. || .. TCH Blog

Posted Image

#3 okayservers

okayservers
  • Members
  • 1 posts

Posted 09 March 2017 - 08:26 AM

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?






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users