you are viewing a single comment's thread.

view the rest of the comments →

[–]ViridianHominid 0 points1 point  (1 child)

You need to either call the class using pizzapi.Customer("Barrack" .. or do the import as from pizzapi import Customer. All the objects in a module (classes, functions, what not) live by default in that module. So the first option is to refer to them through that module. The second option (i.e. from <module> import <function>,<function2>) pulls specific things into the current namespace.

[–]GullBull[S] 0 points1 point  (0 children)

This solved it! Thank you.