| Arevos |
Aug 8th, 2007 6:51 AM |
Quote:
Originally Posted by php111
(Post 131858)
hello gang, I been told a while ago on a different forum before i can learn C, C++ or even C#, I would need to learn either Python or Ruby. Is that right?
|
It's quite possible to learn C-based languages without learning Python, but Python tends to provide a more gentle introduction to programming, and is arguably easier to get going with.
Quote:
Originally Posted by php111
(Post 131858)
I found a really back tutorial so i did what it said go into a command. In my case it was the cmd command line in Vista. I typed in python -V. batch file is not recognized. What can cause that? I have Python installed. I think it is version 2.4.1 or something.
|
It's probably something to do with the PATH environment variable. However, rather than starting Python from the command line, I'd have thought it easier to use the start menu.
On my Python install I have "IDLE (Python GUI)" and "Python (command line)" in a menu folder called "Python 2.5". You probably have something similar. A good place to start is to go to "Python (command line)" and try using it as a calculator, e.g.:
:
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> 1 + 1
2
>>> 2 * 2 * 2
8
>>> 2 ** 3
8
>>>
If that works, then you can start following the tutorial. When you find that your code gets a little too unwieldy for the interactive interpreter, you can switch to the IDLE editor.
|