Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
espacio_blanco
i = 0 j = 0 n = 0 cont = 0 cad = "" n = int(raw_input()) for i in range(int(n)): cad = str(raw_input()) cont = 0; for j in range(int(len(cad)+1)): if cad[j:j+1] == " ": cont = cont+1 print(str(cont));
run
|
edit
|
history
|
help
0
L100
Python2, list comprehension, join, split, zip
PySet
Type lala suthar
Chain length calculator
PyStr
tree generator
e742c63f03ab602f2b38433ffc28b5145ba1332d
MPS encoding
PythonTuple