Advertisement
denvolf2000

Untitled

Dec 16th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. from random import randint
  2. A =  [randint(0, 100) for i in range(25)]
  3. print(A)
  4.  
  5. count = 0
  6. for i in range(len(A) - 1):
  7.     if A[i] % 10 == 0 or A[i + 1] % 10 == 0:
  8.         count += 1
  9. print(count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement