def main():
    #List slicing
    l = [i ** 2 for i in range(1, 11)]
    # Should be [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]

    print l[2:9:2]

if __name__ == "__main__":
    main()
4291fe57ef93a15d51e594f101a14bac3cdd6152
def main():
    #List slicing
    l = [i ** 2 for i in range(1, 11)]
    # Should be [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]

    print l[2:9:2]

if __name__ == "__main__":
    main()