Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
working with strings
Execute linux commands
problem rstring
Run
Temperature Converter
python2 - division -1
Dungeon
Recurring function checker
Dictionary - convert to lowercase
Chain
stackse - search stackoverflow differently
Please log in to post a comment.