-1

Chef.py

class Chef_ordinary:
    
    def make_chicken(self):
           print("The Chef makes a chicken")
    

    def make_salad(self):
           print("The Chef makes a salad")
    
    def make_special_dish(self):
           print ("The Chef makes bbq ribs"

App.py

from Chef import Chef_ordinary

myChef = Chef()
myChef.make_chicken()  
Traceback (most recent call last):
  File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 31, in <module>
    start(fakepyfile,mainpyfile)
  File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 30, in start
    exec(open(mainpyfile).read(),  __main__.__dict__)
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'Chef'
John Kugelman
  • 330,190
  • 66
  • 504
  • 555
Haikal
  • 1
  • 1

0 Answers0