How can I get the "keyboard input" in IBM Watson studio?

80 Views Asked by At

Now I am taking IBM Data Science Professional certificate' course. And, I am using Jupyter Notebook on 'IBM Watson Studio'. My question is this.

when I want to receive the keyboard input on Jupyter notebook, There is a problem like this.

enter image description here

I can't write any input to list 'a'. I want to put some string to 'a' like a=['h','e','l','l','o']. But, I can't write any input to list 'a'. So, list 'a' remains empty. How can I solve this problem?

1

There are 1 best solutions below

1
On BEST ANSWER

This should work fine, but you may have re-defined input somewhere in your code, or your notebook is bugged. Try the following:

x = input("Enter text: ")
a = list(x)