Advanced Python Topics: Migrating from Python 2 to Python 3

Python    |    Beginner
  • 7 videos | 39m 24s
  • Includes Assessment
  • Earns a Badge
Rating 4.3 of 111 users Rating 4.3 of 111 users (111)
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.

WHAT YOU WILL LEARN

  • 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

IN THIS COURSE

  • 2m 13s
  • 8m 57s
    In this video, you will learn how to set up a system to use Python 2 and then in the subsequent videos, you will take a look at the differences between Python 2 and 3. FREE ACCESS
  • Locked
    3.  Differences Between Python 2 and Python 3 - Part 1
    8m 40s
    In this video, you will learn about the differences between Python 2 and Python 3. You will also discover how to perform common operations in both versions of Python. FREE ACCESS
  • Locked
    4.  Differences Between Python 2 and Python 3 - Part 2
    4m 38s
    Another difference between Python 2 and 3 is in the output of the round function. FREE ACCESS
  • Locked
    5.  Using 2to3 to Identify Python 3 Compatibility
    8m 27s
    In this video, you will learn about tools which can be used to automate the process of migrating Python 2 scripts to Python 3. You will also discover how to identify lines in your source code which need to be altered. FREE ACCESS
  • Locked
    6.  Transforming Python 2 Scripts Using 2to3
    5m 27s
    To convert a Python 2 script to be Python 3 compatible, use the 2to3 conversion tool. FREE ACCESS
  • Locked
    7.  Course Summary
    1m 2s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.5 of 113 users Rating 4.5 of 113 users (113)
Rating 4.5 of 226 users Rating 4.5 of 226 users (226)
Rating 4.6 of 2165 users Rating 4.6 of 2165 users (2165)