To start off, I just want to print the length of a hard coded string as follows:
But I get the error: AttributeError: 'str' object has no attribute 'len'
What's wrong?
1 2 3 4 5 6 |
#!/usr/bin/env python3 #NestedIfStuff.py password = "dink" print ( str (password. len ())) |
What's wrong?