karolinagergert

Untitled

Jul 11th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. first=int(input())
  3. count=1
  4. countznak=0
  5. for count in range(1,10):
  6. chester=int(input())
  7. count+=1
  8. if (first<0 and chester>0) or (first>0 and chester<0):
  9. countznak+=1
  10. first=chester
  11. elif (first<0 and chester<0) or (first>0 and chester>0):
  12. first=chester
  13. else:
  14. print(countznak)
Add Comment
Please, Sign In to add comment