Hello, help regarding this issues would be great, I'm attempting to learn a little more about how while loops work but I keep receiving this error when typing the code in Jupyter notebook. It once and prompted me for the password then when I tried to execute the cell again I got a string error. I'm using Jupyter from with in ArcGIS Pro. The current modules installed are arcpy and os. Example of code is below. password = ' ' while password != 'password': print("What is the password?") password = input() print('Yes, the password is ' + password + '. You may enter.') What is the password? --------------------------------------------------------------------------- TypeError Traceback (most recent call last) In [229]: Line 4: password = input() TypeError: 'str' object is not callable
Hello, help regarding this issues would be great, I'm attempting to learn a little more about how while loops work but I keep receiving this error when typing the code in Jupyter notebook. It once and prompted me for the password then when I tried to execute the cell again I got a string error. I'm using Jupyter from with in ArcGIS Pro. The current modules installed are arcpy and os.
Example of code is below.
password = ' '
while password != 'password':
print("What is the password?")
password = input()
print('Yes, the password is ' + password + '. You may enter.')
What is the password?
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
In [229]:
Line 4: password = input()
TypeError: 'str' object is not callable
thanks for this video i wich i find one in french. i have problem with the accent so i cannot undrestand all