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.
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?
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)