Re: [Tutor] which is best python 2 or python3

2016-05-23 Thread Steven D'Aprano
On Mon, May 23, 2016 at 01:24:21PM +0530, Palanikumar Gopalakrishnan wrote:
> Hi buddies,
> I read one article on internet which is said python 2
> and python3 is totally different in programming.
> As a beginner which i prefer for my learning,  python 2 or python3 ?

They are not total different. They are very similar: like British and 
American English. Most things are the same, a few things are slightly 
different.

As a beginner, you should choose a tutorial, and use whatever version of 
Python the tutorial uses.

But if you have a choice, Python 3 is more modern, and has more 
features, and has fixed some problems with Python 2. You should use 
Python 3 for new projects.


-- 
Steve
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] which is best python 2 or python3

2016-05-23 Thread Alan Gauld via Tutor
On 23/05/16 08:54, Palanikumar Gopalakrishnan wrote:
> Hi buddies,
> I read one article on internet which is said python 2
> and python3 is totally different in programming.
> As a beginner which i prefer for my learning,  python 2 or python3 ?

Nowadays the only real justifications for a learner using Python2
are: 1) It's all they can access on their computer or 2) they know
they need a library that is only available on 2.

Otherwise it makes more sense to learn Python 3

Just make sure the tutorial you follow is also Python 3!

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor