python
Dashboard
My Repos
Compilers
Python Online
Node JS Online
Golang Online
codepy
Login
My Repos
Sign Out
Online Python Interpreter
Stop
Run
k = 0 a = [] n = 4 for i in range(0, n): a.append(int(input())) for i in range(n-1): if a[i]*a[i+1]>0 and (a[i]+a[i+1])%7==0: k += 1 print(k)
Share this code with others
Public
Clear
My Repos
Repo
Lang
Login
Register
Login
Create a free account. No Credit card info required.
I agree with the Codepy
Term of Service
Sign Up