<reponame>PacktPublishing/Learning-Apache-Spark-2
data = sc.parallelize([("MyKey1","MyValue1"),("MyKey2","MyValue2"),("MyKey3","MyValue3")])

data.collect()
[('MyKey1', 'MyValue1'), ('MyKey2', 'MyValue2'), ('MyKey3', 'MyValue3')]

data.saveAsSequenceFile("/home/spark/sampledata/seq-py-example")
