Revert "Revert "one practise for raw_input function

This reverts commit e7475dfd54561aff9880c2475decb3a584b896b0.