Jan-14-2018, 04:03 PM
It is a callback.
However, I don't like it. It's hard to read.
However, I don't like it. It's hard to read.
text = input("Enter a string: ") print("The length of your string is {} characters.".format(len(text)))Or:
text_len = len(input("Enter a string: ")) print("The length of your string is {} characters.".format(text_len))Or:
text = input("Enter a string: ") text_len = len(text) print("The length of your string is {} characters.".format(text_len))It's much easier to see what is going on.