Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def is_point_in_snake(point, snake):
- point_belongs_to_snake = False
- for seg in snake:
- if point == seg:
- point_belongs_to_snake = True
- break
- #else:
- # pass
- return point_belongs_to_snake
Advertisement
Add Comment
Please, Sign In to add comment