General question about learning Python


 
Thread Tools Search this Thread
Top Forums Programming General question about learning Python
# 1  
Old 06-19-2013
General question about learning Python

I am planning on taking a class in Python. My choices are 2.5 or 3.0. Which version should I choose? I am getting the impression they are two separate paths.

thanks.
# 2  
Old 06-19-2013
Well, training implies a vision of a profitable future, so wouldn't it make more sense to learn the latest, for the longer term? They usually add features, so a course in too high is better than a course in too low when trying to meet req. for hire/contract.

Of course, if there is a majority opinion to stay with 2.5 until something better than, and different than, 3.0 shows up, such an anomaly would augur otherwise.
# 3  
Old 08-11-2013
If you are referring to some of the features no longer present in Python 3.0, such as these, then start with pre-3.0. Differences within the Python community on support for certain features will be ironed out over time. If you are new to the language, then you might as well start with the latest version.
Is there a reason why version 2.6 is not taught, just in case 3.0 is not available?
# 4  
Old 08-11-2013
Python Versions 2.5.x or 3.0.x?

Both are wildly out of date but it would make sense to start in the 3.0.x range...

Current Python Version in 2.x.x range is 2.7.5 and in 3.x.x range is 3.4.0a1...

I personally enjoy writing Python code to work from 1.4.0 to 3.3.x on multi-platform without modification...

An example is here:-

Aminet - dev/src/BIG_TIME.py.txt

It works on Classic AMIGA OS, (WinUAE and E-UAE), Apple Macbook Pro 10.7.5, Debian Linux and PCLinuxOS 2009 from Python Versions 1.4.0 to 3.3.2 inclusive without modfication.

Have fun...
# 5  
Old 08-12-2013
My suggestion is to start with python 3.x. Some good books tell you the difference and equivalent syntax used in both the versions of python.

For e.g., print ('Hello, World!') works in both python 2.x and 3.x;
where as print 'Hello, World!' will not work in python 3.x, because of the difference in interpretation of the print statement by python 2.x and 3.x
# 6  
Old 08-12-2013
NOTE:-

"print" is a _statement_ in Python Versions up to the latest 2.7.x.

BUT, "print()" is now a function in Python 3.x.x.

It IS possible to get the function to work down to Python 1.4.0, and I have done it many times, but it is a little convoluted...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Learning python, lost with script

Hi there, im just having a hard time understanding why this code does not print anything that is suppose to print: score = raw_input ('what is your score? \n') try: if 1.0 == float(score) >= 0.9: print "A" elif 0.9 > float(score) >= 0.8: ... (1 Reply)
Discussion started by: la2015
1 Replies

2. Shell Programming and Scripting

Learning project ideas - shell, python, UNIX tools, system administration

Hi guys, I am currently working as a system administration engineer, administering telecom applications on linux/unix platforms. I want to learn new things and improve the ones that i have and for this i though to really work on some project or something but i lack of ideas. I want to be... (2 Replies)
Discussion started by: capitanui
2 Replies

3. Programming

7 days into learning PYTHON & looking for some feedback

Hey folks. Title says it all, but... It's been an interesting few days. Never done anything object-oriented before. Previously only had BASH experience. I'm LOVING python. I see so much potential (of course). Can't wait to really get a feel for what's available in the Standard Library. I have no... (6 Replies)
Discussion started by: ryran
6 Replies

4. Linux

General compression question

I am looking for an alternate solution other than gzip or bzip2 to compress files that are 3 to 4 GB each and will be hundreds per day. Aside from increasing storage anybody found a good tool? (5 Replies)
Discussion started by: mykey242
5 Replies

5. UNIX for Dummies Questions & Answers

General Programming Question

Experience level : New to programming in Linux. Forgive my noobiness in this context with regards to programming, language or grammar. Some Background info : I have seen a lot of programs which I use (Modo and Maya especially) which can use a command line to run the different parts of the... (2 Replies)
Discussion started by: snd321
2 Replies

6. UNIX for Dummies Questions & Answers

Executable directory general question

This may be a dumb question (but this is the UNIX for Dummies Q&A forum :) But I'm wondering, what is the purpose of a directory being given execute permissions? I can't execute a directory, only files, right? If I make a directory executable, the files inside still won't execute unless I give... (1 Reply)
Discussion started by: FredSmith
1 Replies

7. Shell Programming and Scripting

general question?

Perl, Python, and PHP are these languages easy to use? Are they command line or are they part of a GUI? (2 Replies)
Discussion started by: wmosley2
2 Replies

8. UNIX for Dummies Questions & Answers

General Question

Hi, I've been racking my brains trying to remember, but, whats the command to change the default shell? I'm currently always in the Korn shell and I want to start out in the Bash shell. I'm running a variant of BSD I guess in Mac OS X 10.2.2 and Mandrake. Thanks. ccindyderek:confused: (4 Replies)
Discussion started by: ccindyderek
4 Replies

9. UNIX for Dummies Questions & Answers

General Proxy Question

This is quite a general question: I am trying to detect whether people accessing my network are using a proxy server. This is *not* to ensure that web pages are not cached! The only way that I can think of doing this is to intercept at packet level and examine the source port for... (1 Reply)
Discussion started by: sam_pointer
1 Replies

10. IP Networking

General Proxy Question

Firstly I must apologise; I have posted something similar in the "general UNIX newbies" forum; but in reterospect I think that it's more appropriate here. Anyhoo; I am trying to detect whether people accessing one of my servers are coming via a proxied connection. I must add that this is... (1 Reply)
Discussion started by: sam_pointer
1 Replies
Login or Register to Ask a Question