Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = input()
- t = 1
- for i in range(len(a)-1):
- if a[i] == " " and a[i+1] != " " :
- t += 1
- print(t)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement