0% found this document useful (0 votes)
3 views1 page

Key Changes from Python 2 to 3

Python 2's print statement became a print function in Python 3, and raw_input became input. These were minimal differences between Python 2 and 3.

Uploaded by

Tumpi Shankritya
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Key Changes from Python 2 to 3

Python 2's print statement became a print function in Python 3, and raw_input became input. These were minimal differences between Python 2 and 3.

Uploaded by

Tumpi Shankritya
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Differences between Python 2 and Python 3 is minimal:-

 The print statement has become the print function. Ex-

In python 2 print “Hello World “

In Python 3 print(‘‘Hello World’’)

 The raw_input function has also changed to input, so instead of,


raw_input(‘What is your name ‘)

you will see


input(‘What is Your name? ‘)

You might also like