0

Why do I receive NameError when inputting the name 'Timby' in the below sequence of images:

enter image description here

After entering input:

enter image description here

2
  • when calling a variable in the print you need to use the syntax like this print(f"Welcome {name}!") What you typed would work for an assignment. Commented Mar 13, 2018 at 3:43
  • It is in fact 'Python 3' notebook! Commented Mar 13, 2018 at 4:57

1 Answer 1

1

It turned out that Jupyter Notebook Python3 kernal path was pointing to Python2 version as outlined in this post: https://github.com/jupyter/jupyter/issues/270

The soultion was to install with input ipython3 kernel install in terminal.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.