![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Apr 2006
Posts: 3
Rep Power: 0
![]() |
programming in python?
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? 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.
|
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Python is a good language, but how do you suppose we learned C/C++ before Python was invented?
![]()
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 | ||
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4
![]() |
Quote:
Quote:
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 >>> |
||
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Just get the path to Python in your environment path variable, open up the command prompt, change to your working directory (if not already there), and go. I keep a shortcut to the command prompt pinned to the start menu.
Aside to Arevos: I finally got around to using Beautiful Soup for this endeavour. Great tool. ![]()
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#5 |
|
Newbie
Join Date: Apr 2006
Posts: 3
Rep Power: 0
![]() |
ok. What language sould i start with first? Python, C, C++, C#, Ruby or what?
|
|
|
|
|
|
#6 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
I recommend Python.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#7 |
|
Newbie
Join Date: Apr 2006
Posts: 3
Rep Power: 0
![]() |
|
|
|
|
|
|
#8 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
You're shitting me. You're jumping ahead way too soon. Write us a neat little application in Python, post it in Finished Projects, then ask the question again. My bet is you'll be posting a few questions in the Python forum before you get there.
The proper steps to learning assembly include actually learning how a microprocessor works. I'm guessing you want to learn how to solve problems programmatically, first, without going there.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#9 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4
![]() |
By the time you've mastered Python, you can go in any number of directions, but it'll be a while before you can do that. Whilst Python is pretty easy to get going with, as programming languages go, it has a lot of advanced features that go beyond many other languages. Realistically, you could spend years just on Python, and many people do, though you may wish to branch out before then. Programming is a discipline that takes a very long time to master, but it's enjoyable, and the continual learning process makes sure you never run out of interesting things to learn about.
|
|
|
|
|
|
#10 |
|
Programming Guru
![]() ![]() ![]() |
Actually, in my years at the university they started us off by learning how to code Assembly... then introducted use to higher level languages. Their logic behind this was to ensure we had a foundation in the very components that make up the system... then when we started writing code in higher level languages we had a higher appreciation for that language and the features available within the IDE. Python is a good starting language... if you want to get more "hardcore"... learn C.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Some general programming questions in python | MR.T | Python | 3 | Jan 25th, 2007 10:34 PM |
| Python programming game? | commodore | Python | 7 | Feb 7th, 2006 6:26 PM |
| [tutorial] Python for programming beginners | coldDeath | Python | 30 | Dec 14th, 2005 11:35 AM |
| Python - A Programmers Introduction | coldDeath | Python | 17 | Aug 19th, 2005 12:41 PM |