Cisco NetAcad Intro to Python Course – Supplement Lab Tutorial & Solution Set: Lab 5.1.9.18 w/Python REGEXes

In this video we take another/new look at lab 5.1.9.18 where we can actually solve this entire challenge with a SINGLE LINE OF CODE using the Python Regular Expression (RE) module! A number of viewers thought that I had not followed the spirit of the lab instructions by including the ‘split( )’ function inside of the custom ‘mysplit( )’ function and so I wanted to go ahead and provide you with not just one, but TWO different solutions to solve the lab challenge using regular expressions. I go over a few of the special characters, show you how to import the REGEX module (which is named ‘re’), and then demonstrate the solution in both the positive sense and a negative sense with respect to the matches – and all, once again, with a single line of Python code in our fuction! Don’t believe me? Just check this video out! Enjoy and hopefully this turns out to be a time saver for you!

This is another video tutorial where we will be covering all of the labs from the Cisco Networking Academy ‘Introduction to Python Course’! I am currently teaching this course to a group of NetAcad instructors and wanted to add some value to their studies as well as yours! Hope you enjoy these lab tutorials and here is the link I references in the video for the tutorial I posted on how to sign up for this exact same course FOR FREE at the Python Institute! Here is the link: https://youtu.be/wL8mh8VY4LA Enjoy!