Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- first=int(input())
- count=1
- countznak=0
- for count in range(1,10):
- chester=int(input())
- count+=1
- if (first<0 and chester>0) or (first>0 and chester<0):
- countznak+=1
- first=chester
- elif (first<0 and chester<0) or (first>0 and chester>0):
- first=chester
- else:
- print(countznak)
Add Comment
Please, Sign In to add comment