Difference python2 and python3
1.python 2 print statement ex,print 'hello'
python 3 print statement ex,print('hello')
2.python 2 uses raw_input and return string. Need to do
explicit typing
python 3 uses input(), no explicity casting.
3.Python 2(Implicit string type is ASCII, but python 3 is Unicode
4.python2 has xrange, but its not in python 3
5)as is mandatory in exception concept
1.python 2 print statement ex,print 'hello'
python 3 print statement ex,print('hello')
2.python 2 uses raw_input and return string. Need to do
explicit typing
python 3 uses input(), no explicity casting.
3.Python 2(Implicit string type is ASCII, but python 3 is Unicode
4.python2 has xrange, but its not in python 3
5)as is mandatory in exception concept