python saveAsTextFile

samples = sc.parallelize([
    ("", "Alberto", "Bonsanto"),
    ("", "Miguel", "Bonsanto"),
    ("", "Stranger", "Weirdo"),
    ("", "Dakota", "Bonsanto")

print samples.collect()

read_rdd = sc.textFile("folder/here.txt")


Here is what the above code is Doing:
1. Create an RDD from a Python list.
2. Save the RDD to a text file.
3. Read the text file back into an RDD.
4. Print the contents of the RDD.