Jump to content
  • Advertisement
Sign in to follow this  
jordi_0071

[python] array's

This topic is 5020 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm not sure what you mean, but if you write your code in somefile.py and then type in the command line "python somefile.py" it'll be run there.

Oh, and you have to assign a splice. Doing a[::-1] will return the spliced list, not auto-assign it to a.
i.e.:
s = a[::-1]
print s

Share this post


Link to post
Share on other sites
Advertisement
I don't understand your question. A python program will produce the same output whether you run it from within IDLE or as a standalone program.

Share this post


Link to post
Share on other sites
Quote:
Original post by jordi_0071
but isnt there any other compiler for python like ms visual C++?


There are two main python distributions (as far as I am aware of), the Python Foundation's and ActiveState's. There are a few python interpreter ('compiler') implementations: CPython, Jython, Stackless; all with a specific purpose. There are a number of Python IDEs: IDLE, wxPython's PyCrust, PythonWin, Boa Constructor, Komodo, Visual Python...

Share this post


Link to post
Share on other sites
Quote:
Original post by jordi_0071
but isnt there any other compiler for python like ms visual C++?

If you mean as in something that "makes a program" (ie .exe in windows) then no, nothing that relaly does that (outside of py2exe which just wraps this process).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!