Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

School is teaching Python 3 but I am learning Python 2

Title says it all. Does it matter or I will be fine ? My teacher is quite a dick sometimes so I think he might refuses it lol.

Also, I am reading "LearnPythonTheHardway" and "A Byte of Python"
are they any good ?
You could always just ask if you can learn python 3 instead of the class isn't to far in.

From what I've heard though I don't think there is a massive difference between the 2


Hope everyone has a wonderful day!
(Oct 12, 2015 10:11 PM)Hello Buddy Wrote:  You could always just ask if you can learn python 3 instead of the class isn't to far in.

From what I've heard though I don't think there is a massive difference between the 2

I've heard that Python 2 is better. This is why I am asking that 😵
They are both better in their own ways, however if you school is going based off of Python 3, then I can assure you that you will be marked wrong if you provide P2 syntax. Little things like print vs print() or range vs xrange
They aren't much different. Just make the switch you won't notice much.
Stick to Python 3+. More features, bug fixes, and constant improvements.
You're gonna have to go with python 3, it'll just be too confusing otherwise.
There are very few syntax that may vary but both versions are always same so Learn python 2 and then python3
Alright thanks for the help and any suggestions for good Python 3 books/Tutorial?
https://hackforums.net/showthread.php?tid=626170

This has a bunch of things to get you started as well as some cool project tutorials you could use to learn more from


Hope everyone has a wonderful day!
py3 is the future of python. I would go with the class there is nothing in python 2 you couldnt read or do if you learned python 3.
do you want to know the truth? .. you can't even tell the difference.
If you already know some python 2 python 3 will be easy to pickup, there are subtle differences like using brackets after print.
[Image: ud2eRTC.jpg]
Checking Twice Daily : Sending Reps back to those who Send them
BTC = 1GVPy7bPAb9nbdmsJsGhhnbKMcsdQcaFw8
Its translates easily, I found a good way to get a quick look at the differences is reading the 2to3 documentation.

2to3 is a good util for doing quick conversions but its not perfect so don't depend on it, sometimes outputting the diff and doing the work yourself is best.
(Oct 12, 2015 10:13 PM)Enzio Wrote:  I've heard that Python 2 is better. This is why I am asking that 😵
No. Python 3 is the future. The only differences you'll notice are some slight syntax changes, and a separation between data (bytes) and strings.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by Bass_ReevesAug 20, 2023 01:44 AM 9 632 Aug 20, 2023 01:44 AM
Last Post: Lucky4L
[Python] by ConstantineJul 13, 2019 10:22 AM 3 301 Jul 13, 2019 10:22 AM
Last Post: EatingBeef
[Java] by Free XJan 3, 2019 09:53 PM 4 255 Jan 3, 2019 09:53 PM
Last Post: OBAMASELF