Home>

I'm new to programming.
I didn't understand it even after checking it, so let me ask you a question.

Get the character string entered in the text box ⇨ (~ ~ .get)
I want to count the number of elements of acquired data ⇨ (len ())
I want to divide the processing to be executed according to the number of elements ↓

n = ~ ~ .get
k = len (n)
if k>20:
Process 1
else: else:
Process 2

object of type'method' has no len ()
Will be displayed.

Corresponding source code
Source code
What I tried Supplementary information (FW/tool version, etc.)

Please provide more detailed information here.

  • Answer # 1

    I can't say for sure without looking at the real code, but probablygetImmediately after()Is just missing.

Trends