Seven error-handling paths used console.print() but console was never imported, causing NameError on invalid user input.