Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Well done!

You have completed (UPI) Chapter 10: Mastering Python Modules!

Instruction

Name Collisions

Modules written by different programmers might use the same name for a function. A name collision occurs when a function is defined multiple times. If a function is defined more than once, the most recent definition is used: from area import cube def cube(x): # Name collision (replaces the imported function) return x ** 3 print(cube(2)) # Calls the local cube() function, not area.cube...