Advanced Python Topics: Migrating from Python 2 to Python 3


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description

In this 7-video course, learners discover key differences between Python 2 and Python 3, as well as learn how to perform a Python 2 migration to Python 3. Several other topics are also covered. Begin by observing how to set up the Jupyter Notebook integrated developer environment (IDE) to run and develop Python 2 code by installing a kernel for it. The next two tutorials will examine the differences between Python 2 and Python 3—part 1 will recall the variations in syntax and output for various operations such as print, division, and round for Python 2 versus Python 3; and part 2 explores differences in the round function behavior and different ways to accept user input in Python versions 2 and 3. Next, use the 2to3 conversion tool to identify the lines in your Python 2 scripts that need to be altered for Python 3 compatibility, and finally, explore how to convert a Python 2 script to be Python 3 compatible by using the 2to3 conversion tool.



Expected Duration (hours)
0.7

Lesson Objectives

Advanced Python Topics: Migrating from Python 2 to Python 3

  • discover the key concepts covered in this course
  • set up the Jupyter Notebook IDE to run and develop Python 2 code by installing a kernel for it
  • recall the variations in syntax and output for various operations such as print, division, and round for Python 2 versus Python 3
  • recognize the differences in the round function behavior and the different ways to accept user input in Python versions 2 and 3
  • use the 2to3 conversion tool to identify the lines in your Python 2 scripts that need to be altered for Python 3 compatibility
  • convert a Python 2 script to be Python 3 compatible using the 2to3 conversion tool
  • summarize the key concepts covered in this course
  • Course Number:
    it_pyatpydj_04_enus

    Expertise Level
    Beginner