0

In shell script,
If no variables are listed after the read command,
a default variable: REPLY will be assigned all the input

    $ read
    test
    $ echo $REPLY
    test

Nevertheless, in python

    In [1]: input(": ")
    : test
    Out[1]: 'test'
    In [2]: #it's gone

Where could I find the 'test'?

AbstProcDo
  • 19,953
  • 19
  • 81
  • 138

0 Answers0