Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 8th, 2007, 12:17 AM   #1
php111
Newbie
 
Join Date: Apr 2006
Posts: 3
Rep Power: 0 php111 is on a distinguished road
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.
php111 is offline   Reply With Quote
Old Aug 8th, 2007, 6:39 AM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Aug 8th, 2007, 6:51 AM   #3
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by php111 View Post
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 View Post
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.
Arevos is offline   Reply With Quote
Old Aug 8th, 2007, 7:28 AM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Aug 8th, 2007, 12:59 PM   #5
php111
Newbie
 
Join Date: Apr 2006
Posts: 3
Rep Power: 0 php111 is on a distinguished road
ok. What language sould i start with first? Python, C, C++, C#, Ruby or what?
php111 is offline   Reply With Quote
Old Aug 8th, 2007, 1:35 PM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Aug 8th, 2007, 1:56 PM   #7
php111
Newbie
 
Join Date: Apr 2006
Posts: 3
Rep Power: 0 php111 is on a distinguished road
Quote:
Originally Posted by DaWei View Post
I recommend Python.

Ok i start with Python. What comes after Python? What would be the proper steps to Assembly? I know Assembly would be way last since it is much harder.
php111 is offline   Reply With Quote
Old Aug 8th, 2007, 3:28 PM   #8
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Aug 8th, 2007, 4:13 PM   #9
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by php111 View Post
Ok i start with Python. What comes after Python?
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.
Arevos is offline   Reply With Quote
Old Aug 8th, 2007, 4:13 PM   #10
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
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."
Infinite Recursion is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:08 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC