#!/usr/bin/env python # coding: utf-8 x = [1,23,4,5,98,7,5,8] for i in x do if i%2 == 0 puts i end end