Python3 customer_service_bot problem


I started the first python3 project in jupyter and after building the first bit of code in step 2 it says " Great Job! Run cs_service_bot() in the cell below and see how it works." When I call the cs_service_bot() function no output is returned. The project says “Cool! We have the initial skeleton done…” and goes to move on to step 3.

I went over to the solutions tab and when I called the function there I again got no output.

What am I doing wrong? Is it the Jupyter environment set-up that’s the problem?


I think I figured it out by googling around a bit. The Python3 kernel wasn’t running. I can restart it but it seems to stop every couple of minutes. So scratch that first question. My new question is why does the Python3 kernel stop running?


I can’t help you, I’m just hoping the CodeAcademy people see this.

This exercise killed my enthusiasm for learning Python3 for the day. Installing and getting this stuff to work should be its own lesson and not an exercise within a module. My OCD wanted to finish the exercise to complete the module but then I looked at a 10 hour lesson for the command line stuff, plus installing a “conda” and I just closed the window for the day.

To be clear, I think the learning for this exercise is important. Weeks prior I spent lots of time installing python, choosing a editor, and linking the editor to the python compiler(?). Learning the command line would be very helpful. And maybe Juypter is helpful? I don’t know. I definitely see the utility for a lesson around this stuff. But man, throwing all of that into an exercise just killed my enthusiasm for the day.


Just adding to this issue. I can limp it past OP’s step, and get ALL the other coding in, but cannot run cs_service_bot() at step 11. Everything I can think to do just defaults back to the input box in step 2 so there’s no way to check if my work is functional.


Yes I agree with you and if not an own lesson then at least a step by step video maybe, because it was so frustrating to get it all run on windows. I made everything like described but still got errors and didnt know why and how to solve them. Now finally when I am done with the customer service bot in jupyter and want to try it I get this


Ok problem solved after watching this video -
I had togot to Kernel - restart & run all


I am trying to run this code customer_service_bot_solution.ipynb which is SOLUTION


I fill in my name and choose EXISTING CUSTOMER option and then I have this error

NameError Traceback (most recent call last)
----> 1 cs_service_bot()

in cs_service_bot()
5 new_customer()
6 elif response_one == “2”:
----> 7 existing_customer()
8 else:
9 print(“Sorry, we didn’t understand your selection.”)

NameError: name ‘existing_customer’ is not defined

I do not understand why?

Could anybody help?


Ok. I run all the functions first and then in the end I fill in the name and run cs_service_bot()

I guess I am not fully understand this Jupyter Notebook