Using from to import

Some people don’t like having to preface everything they type with the module name. Python has a solution for that! You can actually import just the functions you want from a module. Let’s pretend that we want to just import the sqrt function:

Get hands-on with 1400+ tech skills courses.