# Databricks notebook source
spark.sparkContext.parallelize(range(1,100,5)).mapPartitions(lambda iterElement: [ x * 5 for x in iterElement] ).filter(lambda y: y < 100).collect()
ac8ea19c0f30d1dc0e531bc3a97bde1257094b60
<mask token>

spark.sparkContext.parallelize(range(1, 100, 5)).mapPartitions(lambda
    iterElement: [(x * 5) for x in iterElement]).filter(lambda y: y < 100
    ).collect()

# Databricks notebook source
spark.sparkContext.parallelize(range(1,100,5)).mapPartitions(lambda iterElement: [ x * 5 for x in iterElement] ).filter(lambda y: y < 100).collect()