Python for Beginners: Evaluation


Originally published at:

Introduction As part of this blog post we will understand following Setup Development environment for Python and Spark Go through basics of Python Programming Perform exercises in Python Learn Core Spark APIs Perform exercises on Core Spark Explore Data Frames and Spark SQL Solve problems using Data Frames and Spark SQL Setup Development Environment on…


raw_input takes the input as it is and returns it as a string but input uses an eval and returns the output.

So passing a 2 to raw_input would return a string as ‘2’ but in case of input, it would return the number 2.