Tried to use input , but it displays an error when entering a string. How can I enter lines in the console? Python 2.7.

    4 answers 4

     raw_input() 
       >>> import sys >>> sys.stdin.readline() asdawda 'asdawda\n' 
      • true way! - stribog
       >>> x=input("введите число:") введите число:1 >>> print x 1 >>> 

      python 2.7 no problems

         #по-моему так s = str(input())