Advertisement
Jure199

Untitled

Mar 30th, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. def sodo_liho(s):
  2.  
  3.     for n in s[1::2]:
  4.         if n%2 !=0:
  5.             return False
  6.        
  7.  
  8.     for n in s[::2]:
  9.         if n%2 ==0:
  10.             return True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement