I'm using the Atom IDE with the Hydrogen package: python throwing name not defined

0

I've been trying to find a friendlier way to code basic python and I have a test program that runs fine in a linux terminal with no errors. However, when I run the whole code in atom I get this when I enter a value:


********************************************************************* 

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-11-e4bb5458659b> in <module>()
     36                         break
     37         print("\n********************************************************************* \n")
---> 38 introduction(name, birthdays)

<ipython-input-11-e4bb5458659b> in introduction(name, birthdays)
     26         print("\n********************************************************************* \n")
     27         while True:
---> 28                 action = input("Would you like to enter a birthday or view someone's birthday? E/V: ")
     29                 if (action == "E") or (action == "e"):
     30                         entry_query()

/usr/local/lib/python2.7/dist-packages/ipykernel/ipkernel.pyc in <lambda>(prompt)
    174             self._sys_eval_input = builtin_mod.input
    175             builtin_mod.raw_input = self.raw_input
--> 176             builtin_mod.input = lambda prompt='': eval(self.raw_input(prompt))
    177         self._save_getpass = getpass.getpass
    178         getpass.getpass = self.getpass

/usr/local/lib/python2.7/dist-packages/ipykernel/ipkernel.pyc in <module>()

NameError: name 'E' is not defined

Any help would be appreciated, I believe every thing is configured properly because it handles individual lines just fine. Thanks!

Connor Spangler

Posted 2019-06-14T15:11:07.950

Reputation: 1

No answers