L
length power
x=['','x1','x2','x3',' ']
ok
ok
[None, None, None]
i understand there are three 'ok' in the output,but why i have the output
of [None, None, None]
okx ['', 'x1', 'x2', 'x3', ' ']
[print("ok") for it in x if it.strip() !=""]
ok
ok
[None, None, None]
i understand there are three 'ok' in the output,but why i have the output
of [None, None, None]