input
Python 2
  • return the result of the evaluated expression, equals to eval(raw_input())
  • l = input("Enter your input:") # 1+2
    print l, type(l) # 3, int
    		
    Python 3
  • return a string, equals to raw_input in Python 2
  • #!/usr/bin/python3
    
    l = input("Enter your inputs: ") # 1+2
    print(l, eval(l), type(l)) # 1+2, 3, str