Hello, who knows the great difference between python 2.7 and python 3.6 ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Hello, who knows the great difference between python 2.7 and python 3.6 ??

15th Mar 2018, 7:05 PM
JustCodeMore
JustCodeMore - avatar
3 Answers
+ 4
For me it’s the input() ( raw_input() in 2.7 ) and print(x) ( print x in 2.7 ). But I think there are many more :/ Check 3.6 and 2.7 documentation of python
15th Mar 2018, 8:41 PM
Chalza
Chalza - avatar
+ 2
there isn't much. no more xrange in 3 print is without ( ) in 2 modules differ between versions and some modules are only for certain versions there are lots of explanatory videos and articles on the subject
15th Mar 2018, 8:42 PM
Markus Kaleton
Markus Kaleton - avatar
0
the syntax, with Python 2.7 you can omit ( ) or Python 3.6 did not allow it
20th Mar 2018, 7:48 PM
fogne fosso francien
fogne fosso francien - avatar