I have written the following code in python
jupyterlite notebook
using Pyolite
kernel:
min_length = 2
name = input("Please enter your name:")
print(name)
while not(len(name) >= min_length and name.isprintable() and name.isalpha()):
name = input("Please enter your name:")
print("Hello {0}".format(name))
Upon executing the above code, I am getting below error:
<Future pending>
TypeError: object of type 'Future' has no len()
I have not redefined input to be something else anywhere earlier in the jupyter notebook.
More detailed error message:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Input In [1], in <module>
6 name = input("Please enter your name:")
8 print(name)
---> 10 while not(len(name) >= min_length and name.isprintable() and name.isalpha()):
11 name = input("Please enter your name:")
13 print("Hello {0}".format(name))
TypeError: object of type 'Future' has no len()