Skip to main content

Python Input


In this tutorial you will learn:

  • Input Function
  • Input in Python 2.7
  • Input in Python 3.6
  • Making a simple Calculator

Input Function

This is an important function in programming languages almost all programming languages offer some kind of input function to take values from the user.

Input in Python 2.7

Python 2.7 is a bit different from 3.6 and it has a different function for input which is called raw input function. Raw input function takes input from the user and stores it into a variable which can be used while the program is running.


firstName = raw

Add new comment

Code File